/* css/article.css */

/* =========================================
   VARIABLES & GLOBAL
   ========================================= */
   :root {
    --mag-bg: #FDFCF8;
    --accent-blue: #3E5C9A;
    --deep-blue: #2A4068;
    --text-body: #334155; /* Slightly darker grey for precision */
    --font-serif: 'Merriweather', 'Georgia', serif;
    --font-sans: 'Inter', system-ui, sans-serif;
}

.reader-body {
    background-color: #ffffff;
    color: var(--text-body);
    font-family: var(--font-serif);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased; /* Makes fonts look thinner/sharper */
}

/* =========================================
   HEADER SECTION (Dark & Modern)
   ========================================= */
.article-header-section {
    /* Padding to clear navbar + visual balance */
    padding: 120px 0 70px 0;
    
    /* NEW: Dark Gradient Background */
    background: linear-gradient(135deg, var(--deep-blue) 0%, #1e293b 100%);
    
    text-align: center;
    margin-bottom: 50px;
    color: white; /* Default text color for header is now white */
}

/* Back Button (Light Transparent Style) */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 30px;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 600;
    
    /* Transparent White Pill */
    color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    
    transition: all 0.2s ease;
    text-decoration: none !important;
}

.back-link:hover {
    background: white;
    color: var(--deep-blue);
    transform: translateY(-2px);
}

.article-category-tag {
    display: block;
    color: #60a5fa; /* Light Blue Accent */
    font-family: var(--font-sans);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.75rem;
    margin-bottom: 15px;
}

.article-main-title {
    font-family: 'Playfair Display', serif;
    /* REFINED: Smaller, tighter size for precision */
    font-size: 2.6rem; 
    line-height: 1.2;
    color: #ffffff; /* Pure White */
    margin-bottom: 15px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.article-main-subtitle {
    font-family: var(--font-sans);
    font-size: 1.15rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.8); /* Semi-transparent white */
    line-height: 1.6;
    max-width: 650px;
    margin: 0 auto;
}

/* =========================================
   AUTHOR META (Dark Theme Adaptation)
   ========================================= */
.article-meta-row {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    font-family: var(--font-sans);
}

.meta-author {
    display: flex;
    align-items: center;
    gap: 12px;
    /* Light border container */
    padding: 4px 15px;
    background: rgba(255,255,255,0.05);
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.1);
}

.author-avatar-placeholder {
    width: 28px; height: 28px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.8rem;
}

.meta-text {
    text-align: left;
    display: flex; 
    flex-direction: row; /* Layout side-by-side to save height */
    align-items: center;
    gap: 8px;
    line-height: 1;
}

.author-name { 
    font-weight: 600; 
    color: white; 
    font-size: 0.8rem; 
}
.post-date { 
    font-size: 0.75rem; 
    color: rgba(255,255,255,0.6); 
    margin-top: 2px;
}

/* =========================================
   MAIN CONTENT LAYOUT
   ========================================= */
.article-container {
    max-width: 700px; /* Tighter width for better eye tracking */
    margin: 0 auto 100px auto;
    padding: 0 25px;
}

/* Hero Image */
.article-hero-image-wrapper {
    width: 100%;
    border-radius: 8px; /* Sharper corners */
    overflow: hidden;
    margin-bottom: 50px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
}
.article-hero-image-wrapper img { width: 100%; height: auto; display: block; }

/* =========================================
   TYPOGRAPHY (Refined for Precision)
   ========================================= */
.prose-content {
    /* REFINED: Smaller font size for professional look */
    font-size: 1.10rem; 
    line-height: 1.8;
    color: #334155; /* Slate Grey */
}

.prose-content p { margin-bottom: 28px; }

/* Drop Cap: Modern & Clean */
.prose-content > p:first-of-type::first-letter {
    font-family: 'Playfair Display', serif;
    font-size: 4.5rem;
    float: left;
    line-height: 0.85;
    margin-right: 12px;
    margin-top: 6px;
    color: var(--deep-blue);
    font-weight: 700;
}

/* Headings inside article */
.prose-content h3 {
    font-family: var(--font-sans);
    font-size: 1.5rem; /* Reduced from 1.8rem */
    font-weight: 700;
    color: #1e293b; /* Dark Slate */
    margin-top: 50px;
    margin-bottom: 20px;
    letter-spacing: -0.3px;
}

.prose-content ul { 
    margin-bottom: 30px; 
    padding-left: 0; 
    list-style: none; /* Remove default bullets */
}

/* Custom Bullet Points */
.prose-content li { 
    margin-bottom: 12px; 
    padding-left: 25px; 
    position: relative;
}
.prose-content li::before {
    content: "•";
    color: var(--accent-blue);
    font-weight: bold;
    position: absolute;
    left: 5px;
    top: 0;
}

/* Blockquotes: Clean Modern Style */
.prose-content blockquote {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-style: italic;
    color: #475569;
    border-left: 3px solid var(--accent-blue);
    margin: 40px 0;
    padding: 10px 0 10px 25px;
    background: transparent;
}

/* Inline Images */
.article-inline-img {
    max-width: 70%;
    height: auto;
    border-radius: 12px;
    margin: 40px auto;
    border: 1px solid #f1f5f9;
    display: block;
    object-fit: contain;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

/* Myth/Reality Box Style (Refined) */
.myth-box {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    margin: 35px 0;
    font-family: var(--font-sans);
    font-size: 0.95rem;
}
.myth {
    background: #fff1f2;
    padding: 15px 20px;
    color: #be123c;
    border-bottom: 1px solid #e2e8f0;
}
.reality {
    background: #f0fdf4;
    padding: 15px 20px;
    color: #15803d;
}

/* =========================================
   FOOTER INTERACTIONS
   ========================================= */
.article-footer-interaction {
    margin-top: 80px;
    text-align: center;
}

.article-footer-interaction hr {
    border: 0; height: 1px; background: #e2e8f0;
    margin-bottom: 40px; max-width: 80px;
    margin-left: auto; margin-right: auto;
}

.article-footer-interaction p {
    font-family: var(--font-sans);
    color: #94a3b8; margin-bottom: 20px; font-size: 0.9rem;
}

.interaction-buttons { display: flex; justify-content: center; gap: 15px; }

.btn-interact {
    background: white;
    border: 1px solid #cbd5e1;
    padding: 10px 24px;
    border-radius: 50px;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-interact:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
}

/* --- Toast Notification --- */
.toast-notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #27ae60, #229954);
    color: white;
    padding: 18px 28px;
    border-radius: 12px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
    font-weight: 700;
    font-size: 1rem;
    z-index: 9999;
    animation: slideInToast 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: 350px;
    border-left: 5px solid #fff;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.toast-notification i {
    font-size: 1.4rem;
    animation: iconBounce 0.6s ease;
}

.toast-notification.fadeOut {
    animation: slideOutToast 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes slideInToast {
    from {
        transform: translateX(450px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutToast {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(450px);
        opacity: 0;
    }
}

@keyframes iconBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

@media (max-width: 768px) {
    .toast-notification {
        bottom: 20px;
        right: 20px;
        left: 20px;
        max-width: none;
        padding: 16px 24px;
        font-size: 0.95rem;
        z-index: 9999;
    }
}
  /* { display: flex; align-items: center; gap: 8px;
}*/

.btn-interact:hover {
    border-color: var(--accent-blue);
    color: var(--accent-blue);
    transform: translateY(-1px);
}

/* Progress Bar */
/* Reading Progress Bar */
.reading-progress {
    position: fixed;
    /* FIX: Move it down to match navbar height (15px padding + 30px logo + 15px padding = 60px) */
    top: 70px; 
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, #ec4d13 0%, #e5761b 100%);
    width: 0%;
    
    /* FIX: Lower z-index so it slides UNDER the navbar's dropdowns (Navbar is 1000) */
    z-index: 999; 
    
    transition: width 0.1s ease-out;
}

/* Mobile Tweak */
@media (max-width: 768px) {
    .article-header-section { padding: 100px 0 50px 0; }
    .article-main-title { font-size: 2rem; }
    .article-container { padding: 0 20px; }
}