/* Single Blog Post Styles - RupIELTS Theme */

/* Main Layout */
.blog-single-main {
    min-height: 100vh;
    background: inherit;
    position: relative;
}

/* Animated Background */
.blog-single-main::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 30% 20%, rgba(255, 170, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 40%, rgba(253, 255, 182, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 80%, rgba(178, 255, 163, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* Custom HTML Post */
.blog-custom-html-post {
    position: relative;
    z-index: 2;
}

/* Default Article Styles */
.blog-single-article {
    position: relative;
    z-index: 2;
}

/* Hero Section */
.blog-single-hero {
    background: 
        linear-gradient(135deg, rgba(255, 170, 255, 0.25) 0%, rgba(253, 255, 182, 0.2) 40%, rgba(178, 255, 163, 0.2) 70%, rgba(148, 246, 255, 0.25) 100%);
    padding: 100px 20px 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.blog-single-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 40px, rgba(255, 170, 255, 0.03) 40px, rgba(255, 170, 255, 0.03) 80px);
    animation: blogPattern 25s linear infinite;
}

@keyframes blogPattern {
    0% { transform: translate(0, 0); }
    100% { transform: translate(80px, 80px); }
}

.blog-single-hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.blog-single-category {
    display: inline-block;
    margin-bottom: 20px;
}

.blog-single-category a {
    background: linear-gradient(135deg, #ffaaff, #94f6ff);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.blog-single-category a:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 170, 255, 0.3);
}

.blog-single-title {
    font-size: 3rem;
    margin-bottom: 30px;
    color: var(--dark-text);
    font-weight: 800;
    line-height: 1.2;
}

.blog-single-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    font-size: 1rem;
    color: #666;
}

.blog-single-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.blog-author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.blog-single-date time {
    font-weight: 500;
}

.blog-single-location {
    color: #ffaaff;
    font-weight: 600;
}

/* Featured Image */
.blog-single-featured-image {
    max-width: 1200px;
    margin: 60px auto -100px;
    position: relative;
    z-index: 3;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.15);
}

.blog-single-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Container */
.blog-single-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 20px 60px;
    position: relative;
    z-index: 2;
}

.blog-single-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 50px;
    align-items: start;
}

/* Main Content */
.blog-single-content {
    background: 
        linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.9) 100%);
    backdrop-filter: blur(20px);
    border-radius: 30px;
    padding: 50px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* Content Typography */
.blog-single-content h1,
.blog-single-content h2,
.blog-single-content h3,
.blog-single-content h4,
.blog-single-content h5,
.blog-single-content h6 {
    margin-top: 2em;
    margin-bottom: 1em;
    color: var(--dark-text);
    font-weight: 700;
    line-height: 1.3;
}

.blog-single-content h2 {
    font-size: 2rem;
    background: linear-gradient(45deg, #ffaaff, #94f6ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.blog-single-content h3 {
    font-size: 1.5rem;
    color: #666;
}

.blog-single-content p {
    margin-bottom: 1.5em;
    line-height: 1.8;
    font-size: 1.1rem;
    color: #444;
}

.blog-single-content ul,
.blog-single-content ol {
    margin-bottom: 1.5em;
    margin-left: 2em;
    line-height: 1.8;
}

.blog-single-content li {
    margin-bottom: 0.5em;
}

.blog-single-content blockquote {
    margin: 2em 0;
    padding: 1.5em 2em;
    background: 
        linear-gradient(135deg, rgba(255, 170, 255, 0.1) 0%, rgba(148, 246, 255, 0.1) 100%);
    border-left: 5px solid #ffaaff;
    font-style: italic;
    border-radius: 10px;
    position: relative;
}

.blog-single-content blockquote::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 20px;
    font-size: 80px;
    color: rgba(255, 170, 255, 0.2);
    font-family: Georgia, serif;
}

.blog-single-content img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin: 2em 0;
}

.blog-single-content a {
    color: #ffaaff;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.blog-single-content a:hover {
    border-bottom-color: #ffaaff;
}

/* Tags */
.blog-single-tags {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 2px solid rgba(255, 170, 255, 0.2);
}

.blog-single-tags h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--dark-text);
}

.blog-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.blog-tags-list a {
    padding: 10px 22px;
    background: 
        linear-gradient(135deg, rgba(255, 170, 255, 0.1) 0%, rgba(148, 246, 255, 0.1) 100%);
    border-radius: 25px;
    color: var(--dark-text);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.blog-tags-list a:hover {
    border-color: #ffaaff;
    background: 
        linear-gradient(135deg, rgba(255, 170, 255, 0.2) 0%, rgba(148, 246, 255, 0.2) 100%);
    transform: translateY(-3px);
}

/* Local CTA */
.blog-single-local-cta {
    background: 
        linear-gradient(135deg, #ffaaff 0%, #fdffb6 50%, #b2ffa3 100%);
    color: white;
    padding: 40px;
    border-radius: 25px;
    text-align: center;
    margin-top: 50px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(255, 170, 255, 0.3);
}

.blog-single-local-cta::before {
    content: '🏢';
    position: absolute;
    right: -30px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 120px;
    opacity: 0.1;
}

.blog-single-local-cta h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.blog-single-local-cta p {
    font-size: 1.1rem;
    margin-bottom: 25px;
    opacity: 0.95;
}

.blog-local-cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.blog-local-btn-primary,
.blog-local-btn-secondary {
    padding: 15px 35px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    display: inline-block;
}

.blog-local-btn-primary {
    background: white;
    color: #ffaaff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.blog-local-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.blog-local-btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid white;
    backdrop-filter: blur(10px);
}

.blog-local-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
}

/* Sidebar */
.blog-single-sidebar {
    position: sticky;
    top: 100px;
}

.blog-single-widget {
    background: 
        linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.9) 100%);
    backdrop-filter: blur(20px);
    border-radius: 25px;
    padding: 30px;
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.blog-single-widget h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    background: linear-gradient(45deg, #ffaaff, #94f6ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

/* Table of Contents */
.blog-toc-widget #blog-table-of-contents {
    max-height: 400px;
    overflow-y: auto;
}

.blog-toc-widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.blog-toc-widget li {
    margin-bottom: 12px;
}

.blog-toc-widget a {
    color: var(--dark-text);
    text-decoration: none;
    display: block;
    padding: 8px 15px;
    background: rgba(255, 170, 255, 0.05);
    border-radius: 10px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.blog-toc-widget a:hover {
    background: rgba(255, 170, 255, 0.15);
    border-left-color: #ffaaff;
    transform: translateX(5px);
}

/* Info Widget */
.blog-info-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.blog-info-list li {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 170, 255, 0.1);
}

.blog-info-list li:last-child {
    border-bottom: none;
}

.blog-info-label {
    color: #666;
}

.blog-info-value {
    font-weight: 600;
    color: #ffaaff;
}

/* Newsletter Widget */
.blog-newsletter-widget {
    background: 
        linear-gradient(135deg, #ffaaff 0%, #94f6ff 100%);
    color: white;
    text-align: center;
}

.blog-newsletter-widget p {
    margin-bottom: 20px;
    opacity: 0.95;
}

.blog-newsletter-single-btn {
    background: white;
    color: #ffaaff;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 700;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.blog-newsletter-single-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

/* Author Bio */
.blog-author-bio {
    max-width: 900px;
    margin: 80px auto;
    padding: 0 20px;
}

.blog-author-bio-content {
    background: 
        linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.9) 100%);
    backdrop-filter: blur(20px);
    border-radius: 30px;
    padding: 40px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    display: flex;
    gap: 35px;
    align-items: center;
}

.blog-author-bio-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 5px solid white;
    box-shadow: 0 10px 30px rgba(255, 170, 255, 0.3);
    flex-shrink: 0;
}

.blog-author-bio-info h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    background: linear-gradient(45deg, #ffaaff, #94f6ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.blog-author-bio-info p {
    line-height: 1.6;
    margin-bottom: 10px;
}

.blog-author-location {
    color: #666;
    font-size: 0.95rem;
}

/* Related Posts */
.blog-related-posts {
    background: 
        linear-gradient(135deg, rgba(255, 170, 255, 0.1) 0%, rgba(148, 246, 255, 0.1) 100%);
    padding: 80px 20px;
    margin-top: 80px;
}

.blog-related-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 50px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    background: linear-gradient(45deg, #ffaaff, #94f6ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.blog-related-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
}

.blog-related-item {
    background: 
        linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.9) 100%);
    backdrop-filter: blur(20px);
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.blog-related-item::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #ffaaff, #fdffb6, #b2ffa3, #94f6ff);
    border-radius: 25px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.blog-related-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 
        0 25px 60px rgba(255, 170, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.blog-related-item:hover::before {
    opacity: 1;
}

.blog-related-thumbnail {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.blog-related-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.blog-related-item:hover .blog-related-thumbnail img {
    transform: scale(1.1);
}

.blog-related-placeholder {
    background: 
        linear-gradient(135deg, rgba(255, 170, 255, 0.2) 0%, rgba(148, 246, 255, 0.2) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-related-placeholder span {
    font-size: 60px;
    opacity: 0.5;
}

.blog-related-content {
    padding: 30px;
}

.blog-related-content h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    line-height: 1.3;
}

.blog-related-content h3 a {
    color: var(--dark-text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-related-content h3 a:hover {
    color: #ffaaff;
}

.blog-related-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.blog-related-date {
    color: #999;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 968px) {
    .blog-single-content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .blog-single-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 30px;
    }
    
    .blog-author-bio-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .blog-single-title {
        font-size: 2.2rem;
    }
    
    .blog-single-hero {
        padding: 80px 20px 40px;
    }
    
    .blog-single-meta {
        gap: 20px;
        font-size: 0.9rem;
    }
    
    .blog-single-featured-image {
        margin: 40px auto -60px;
        border-radius: 20px;
    }
    
    .blog-single-container {
        padding: 80px 20px 40px;
    }
    
    .blog-single-content {
        padding: 30px 20px;
    }
    
    .blog-single-content h2 {
        font-size: 1.6rem;
    }
    
    .blog-single-content p {
        font-size: 1rem;
    }
    
    .blog-local-cta-buttons {
        flex-direction: column;
    }
    
    .blog-local-btn-primary,
    .blog-local-btn-secondary {
        width: 100%;
        text-align: center;
    }
    
    .blog-related-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-related-title {
        font-size: 1.8rem;
    }
}