/* ============================================
   BLOG POST PAGE STYLES
   Single-page continuous scroll format
   ============================================ */

/* ============================================
   POST HEADER SECTION
   ============================================ */
.post-header {
    position: relative;
    padding: 8rem 0 4rem;
    margin-top: 4rem;
    text-align: center;
    overflow: hidden;
}

.post-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.post-header .container {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.post-category-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--white-crisp);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.post-title-main {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: var(--white-crisp);
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

.post-meta-header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    color: rgba(255, 255, 255, 0.95);
    font-size: 1rem;
    font-weight: 500;
}

.post-meta-header i {
    margin-right: 0.5rem;
    color: var(--gold-warm);
}

/* ============================================
   VIDEO SECTION (Immediately after hero)
   ============================================ */
.video-section {
    background: var(--white-crisp);
    padding: var(--spacing-xl) 0;
}

.video-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
    background: var(--navy-deep);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-title {
    text-align: center;
    margin-top: var(--spacing-md);
    font-size: 1.125rem;
    color: var(--gray-medium);
    font-style: italic;
}

/* ============================================
   MAIN ARTICLE CONTENT
   ============================================ */
.article-layout {
    display: grid;
    grid-template-columns: 1fr 800px 1fr;
    gap: 3rem;
    padding: var(--spacing-xl) var(--spacing-md);
    background: var(--white-crisp);
    position: relative;
}

.sidebar-left,
.sidebar-right {
    position: sticky;
    top: 6rem;
    height: fit-content;
}

.sidebar-left {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

/* Table of Contents */
.toc {
    background: var(--gray-soft);
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid var(--gold-accent);
}

.toc h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--navy-deep);
}

.toc ul {
    list-style: none;
}

.toc li {
    margin-bottom: 0.75rem;
}

.toc a {
    color: var(--navy-medium);
    font-size: 0.95rem;
    transition: var(--transition-medium);
    display: block;
    padding: 0.25rem 0;
}

.toc a:hover {
    color: var(--gold-accent);
    padding-left: 0.5rem;
}

/* Reading Progress */
.reading-progress-wrapper {
    background: var(--gray-soft);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
}

.reading-progress-wrapper h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
}

.progress-circle {
    width: 100px;
    height: 100px;
    margin: 0 auto;
    position: relative;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold-accent);
}

/* Share Buttons */
.share-buttons {
    background: var(--gray-soft);
    padding: 1.5rem;
    border-radius: 12px;
    margin-top: 2rem;
}

.share-buttons h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--navy-deep);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.share-icons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    margin-right: 0.75rem;
    background: var(--white-crisp);
    border-radius: 50%;
    transition: var(--transition-medium);
    cursor: pointer;
    font-size: 1.1rem;
    color: var(--navy-deep);
    text-decoration: none;
    border: 2px solid var(--gray-soft);
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--gold-accent);
}

.share-btn.twitter:hover {
    background: #1DA1F2;
    color: white;
    border-color: #1DA1F2;
}

.share-btn.facebook:hover {
    background: #4267B2;
    color: white;
    border-color: #4267B2;
}

.share-btn.linkedin:hover {
    background: #0077B5;
    color: white;
    border-color: #0077B5;
}

.share-btn i {
    font-size: 1.1rem;
}

/* Main Article Content */
.article-content {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--navy-medium);
}

.article-content h2 {
    font-size: 2rem;
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-sm);
    color: var(--navy-deep);
}

.article-content h3 {
    font-size: 1.5rem;
    margin-top: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
    color: var(--navy-medium);
}

.article-content p {
    margin-bottom: var(--spacing-md);
    text-align: justify;
}

.article-content strong {
    color: var(--navy-deep);
    font-weight: 600;
}

.article-content em {
    font-style: italic;
    color: var(--gold-accent);
}

/* Article Images - Standardized Sizes */
.article-image {
    margin: var(--spacing-lg) 0;
    opacity: 1;
    transform: translateY(0);
    transition: all 0.6s ease;
}

.article-image.visible {
    opacity: 1;
    transform: translateY(0);
}

.post-image-full {
    margin: var(--spacing-lg) 0;
    opacity: 1;
    transform: translateY(0);
}

.article-image img,
.post-image-full img,
.zoomable {
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    cursor: zoom-in;
    transition: var(--transition-medium);
    display: block;
}

.article-image img:hover,
.post-image-full img:hover,
.zoomable:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-xl);
}

.post-image-full figcaption,
.image-caption,
figcaption {
    text-align: center;
    font-size: 0.95rem;
    color: var(--gray-medium);
    font-style: italic;
    margin-top: 0.75rem;
    padding: 0 var(--spacing-sm);
}

/* Pull Quotes */
.pull-quote {
    margin: var(--spacing-lg) 0;
    padding: var(--spacing-md);
    background: linear-gradient(135deg, var(--gray-soft) 0%, #fff 100%);
    border-left: 5px solid var(--gold-accent);
    border-radius: 8px;
    font-size: 1.5rem;
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--navy-deep);
    text-align: center;
}

.pull-quote cite {
    display: block;
    margin-top: 1rem;
    font-size: 1rem;
    font-style: normal;
    color: var(--gray-medium);
    font-family: var(--font-sans);
}

/* Did You Know Boxes */
.did-you-know {
    margin: var(--spacing-xl) 0;
    padding: 2.5rem;
    background: linear-gradient(135deg, rgba(212, 165, 116, 0.15) 0%, rgba(212, 165, 116, 0.05) 100%);
    border-radius: 20px;
    border: 3px solid rgba(212, 165, 116, 0.4);
    position: relative;
    box-shadow: 0 10px 40px rgba(212, 165, 116, 0.2);
    transition: all 0.4s ease;
}

.did-you-know:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(212, 165, 116, 0.3);
}

.did-you-know::before {
    content: '💡';
    position: absolute;
    top: -45px;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    background-color: var(--white-crisp);
    border-radius: 50%;
    box-shadow: 0 8px 30px rgba(212, 165, 116, 0.4);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        box-shadow: 0 8px 30px rgba(212, 165, 116, 0.4);
        transform: translateX(-50%) scale(1);
    }
    to {
        box-shadow: 0 12px 40px rgba(255, 215, 0, 0.6);
        transform: translateX(-50%) scale(1.05);
    }
}

.did-you-know h3,
.did-you-know h4 {
    color: var(--gold-accent);
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    margin-top: 2rem;
    text-align: center;
    display: block;
    font-family: var(--font-serif);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 2px 4px rgba(212, 165, 116, 0.3);
}

.did-you-know h3 i,
.did-you-know h4 i {
    display: none;
}

.did-you-know h3 i::before,
.did-you-know h4 i::before {
    content: '';
    display: none;
}

.did-you-know p {
    margin-bottom: 0;
    font-size: 1.2rem;
    line-height: 2;
    text-align: center;
    color: var(--navy-deep);
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.did-you-know ul {
    text-align: left;
    max-width: 800px;
    margin: 0 auto;
}

.did-you-know ul li {
    font-size: 1.15rem;
    line-height: 2;
    color: var(--navy-deep);
    margin-bottom: 0.75rem;
}

/* Reflection Questions Section */
.reflection-section {
    margin-top: var(--spacing-xl);
    padding: 3rem;
    background: linear-gradient(135deg, rgba(26, 35, 50, 0.95) 0%, rgba(44, 62, 80, 0.95) 100%);
    border-radius: 24px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
    border: 3px solid var(--gold-accent);
    position: relative;
    overflow: hidden;
}

.reflection-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--gold-warm), var(--gold-accent), var(--gold-warm));
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.reflection-section h2 {
    text-align: center;
    color: var(--gold-accent);
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    font-family: var(--font-serif);
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.reflection-intro {
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    font-style: italic;
}

.reflection-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.reflection-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.9) 100%);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.4s ease;
    border-left: 5px solid var(--gold-accent);
    position: relative;
    backdrop-filter: blur(10px);
}

.reflection-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 45px rgba(212, 165, 116, 0.4);
    border-left-width: 8px;
}

.reflection-number {
    position: absolute;
    top: -15px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--gold-warm) 0%, var(--gold-accent) 100%);
    color: var(--white-crisp);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    box-shadow: 0 4px 15px rgba(212, 165, 116, 0.5);
    font-family: var(--font-serif);
}

.reflection-card h3 {
    color: var(--navy-deep);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    font-family: var(--font-serif);
    padding-top: 0.5rem;
}

.reflection-card p {
    color: var(--navy-medium);
    font-size: 1.1rem;
    line-height: 1.8;
}

.reflection-questions {
    margin-top: var(--spacing-xl);
    padding: var(--spacing-lg);
    background: var(--gray-soft);
    border-radius: 16px;
}

.reflection-questions h2 {
    text-align: center;
    color: var(--navy-deep);
    margin-bottom: var(--spacing-lg);
}

.question-card {
    background: var(--white-crisp);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-medium);
    cursor: pointer;
}

.question-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.question-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.question-number {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: var(--gold-accent);
    color: var(--white-crisp);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.125rem;
}

.question-text {
    flex: 1;
}

.question-text h4 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    color: var(--navy-deep);
}

.question-text p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--navy-medium);
    margin-bottom: 0;
}

/* Related Posts */
.related-posts {
    margin-top: 4rem;
    padding: 3rem 0;
    background: var(--white-crisp);
    border-top: 1px solid var(--gray-soft);
}

.related-posts h2 {
    font-family: var(--font-serif);
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--navy-deep);
    margin-bottom: 2.5rem;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.related-post-card {
    background: var(--gray-soft);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition-medium);
    box-shadow: var(--shadow-sm);
}

.related-post-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.related-post-card a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.related-post-image {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--white-crisp);
}

.related-post-card h3 {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    color: var(--navy-deep);
    margin: 1.5rem 1.5rem 0.5rem;
    line-height: 1.3;
}

.related-post-card p {
    font-size: 0.95rem;
    color: var(--gray-medium);
    margin: 0 1.5rem 1.5rem;
}

/* Lightbox for Images */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: var(--shadow-xl);
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 3rem;
    color: var(--white-crisp);
    cursor: pointer;
    transition: var(--transition-medium);
}

.lightbox-close:hover {
    color: var(--gold-accent);
    transform: scale(1.2);
}

/* Reading Progress Bar (Top of page) */
.reading-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: var(--gold-accent);
    z-index: 10001;
    transition: width 0.1s ease;
}

/* ============================================
   RESPONSIVE DESIGN FOR BLOG POSTS
   ============================================ */
@media (max-width: 1200px) {
    .article-layout {
        grid-template-columns: 250px 1fr;
        gap: 2rem;
    }
    
    .sidebar-right {
        display: none;
    }
}

@media (max-width: 968px) {
    .article-layout {
        grid-template-columns: 1fr;
        padding: var(--spacing-md);
    }
    
    .sidebar-left,
    .sidebar-right {
        position: static;
        display: none;
    }
}

@media (max-width: 480px) {
    .post-hero h1 {
        font-size: 1.75rem;
    }
    
    .video-section {
        padding: var(--spacing-md) 0;
    }
    
    .article-content {
        font-size: 1rem;
    }
    
    .reflection-section {
        padding: 2rem 1.5rem;
    }
    
    .reflection-section h2 {
        font-size: 2rem;
        letter-spacing: 2px;
    }
    
    .reflection-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .reflection-questions {
        padding: var(--spacing-md);
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
}