/* --- NEWS ARTICLE STYLES --- */

/* 1. PROGRESS BAR */
.reading-progress {
    position: fixed;
    top: 0; left: 0;
    width: 0%; height: 3px;
    background: var(--accent);
    z-index: 1002; /* Above Navbar */
    transition: width 0.1s linear;
}

/* 2. ARTICLE HEADER */
.article-header {
    padding-top: 180px; /* Accounts for fixed nav */
    padding-bottom: 80px;
    max-width: 900px;
    margin: 0 auto;
}

.text-center { text-align: center; }

/* Category Pill */
.category-pill {
    display: inline-block;
    font-family: 'SF Mono', monospace;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 6px 16px;
    border-radius: 99px;
    margin-bottom: 32px;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.category-pill:hover { transform: scale(1.05); }

/* Color variants */
.category-pill.sustainability {
    background: rgba(52, 199, 89, 0.1);
    color: #34C759; /* Apple Green */
    border: 1px solid rgba(52, 199, 89, 0.2);
}

.headline {
    font-size: clamp(2.8rem, 5vw, 4.8rem);
    line-height: 1.05;
    margin-bottom: 24px;
    text-wrap: balance;
    letter-spacing: -0.04em;
    color: var(--text-main);
}

.sub-headline {
    font-size: 1.35rem;
    line-height: 1.6;
    color: var(--text-secondary);
    max-width: 680px;
    margin: 0 auto 48px;
    font-weight: 300;
}

/* Meta Data Block */
/* --- ARTICLE META BLOCK (Premium Editorial) --- */
.article-meta-block {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px; /* Slightly tighter gap for cohesion */
    
    /* Structural Definition */
    margin-top: 40px;
    padding: 18px 0; /* Vertical breathing room */
    border-top: 1px solid rgba(0,0,0,0.06); /* Ultra-subtle divider */
    border-bottom: 1px solid rgba(0,0,0,0.06);
    
    font-family: -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* --- AUTHOR LINK WRAPPER --- */
.author-link-wrapper {
    text-decoration: none;
    color: inherit;
    display: inline-flex;
    align-items: center;
    border-radius: 50px; /* For focus ring focus */
    transition: opacity 0.2s ease;
}

.author-link-wrapper:hover {
    opacity: 0.7; /* Apple style hover: Fade, don't move */
}

/* --- AUTHOR PILL --- */
.author-pill {
    display: flex;
    align-items: center;
    gap: 12px; /* Tighter gap between face and text */
    text-align: left;
}

.author-pill img {
    width: 42px; height: 42px; /* Slightly smaller, more elegant */
    border-radius: 50%;
    object-fit: cover;
    
    /* Premium Detail: Inner border instead of outer */
    /* This creates a clean edge even on white backgrounds without bulk */
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.1); 
    background: #f0f0f0; /* Skeleton loading color */
}

/* --- TEXT HIERARCHY --- */
.meta-text { 
    display: flex; 
    flex-direction: column; 
    justify-content: center;
    line-height: 1.3; 
}

.meta-text strong { 
    color: var(--text-main); 
    font-size: 0.95rem; 
    font-weight: 600; 
    letter-spacing: -0.01em; /* Tighten for crispness */
}

.meta-text span { 
    color: var(--text-secondary); /* Gray is more premium than Accent here */
    font-size: 0.75rem; 
    font-weight: 400; 
    letter-spacing: 0;
}

/* --- VERTICAL DIVIDER --- */
.divider { 
    width: 1px; 
    height: 24px; /* Shorter than container */
    background: rgba(0,0,0,0.1); /* Very light gray */
}

/* --- DATE & READ TIME --- */
.date-read {
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 500;
    
    /* Tech/Premium touch: Monospace for numbers */
    font-family: 'SF Mono', 'Menlo', monospace; 
    text-transform: uppercase;
    letter-spacing: 0.04em;
    
    display: flex;
    align-items: center;
    gap: 8px;
}

.date-read .dot { 
    color: rgba(0,0,0,0.2); 
    font-size: 1.2em;
    line-height: 0;
}

/* --- MOBILE RESPONSIVE --- */
@media (max-width: 600px) {
    .article-meta-block {
        flex-direction: column; /* Stack vertically on small phones */
        align-items: center;
        gap: 16px;
        border-top: none; /* Remove top border on mobile for cleaner flow */
    }
    .divider { 
        display: none; /* Hide divider, just use spacing */
    }
}





/* --- 3. HERO IMAGE --- */
.article-hero-img {
    width: 100%;
    margin: 0 0 100px 0;
}
.article-hero-img .img-wrapper {
    width: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    line-height: 0;
}
.article-hero-img img {
    width: 100%; height: auto;
    transform: scale(1.01); /* Prevents pixel snapping lines */
}

figcaption {
    display: block;
    font-family: 'SF Mono', monospace;
    font-size: 0.8rem;
    color: var(--text-tertiary);
    margin-top: 20px;
    letter-spacing: -0.02em;
    text-align: center;
}

/* --- 4. ARTICLE BODY --- */
.article-body {
    max-width: 700px;
    margin: 0 auto;
    font-family: 'Inter', sans-serif;
    color: #111;
}

/* Paragraph Typography */
.article-body p {
    font-size: 1.25rem; /* ~20px for readability */
    line-height: 1.7;
    margin-bottom: 36px;
    color: #222;
    letter-spacing: -0.01em;
}

/* Lead Paragraph / Drop Cap */
.lead-paragraph {
    font-size: 1.4rem !important;
    line-height: 1.6 !important;
    color: var(--text-main) !important;
}

.drop-cap {
    float: left;
    font-family: 'Playfair Display', serif;
    font-size: 5.8rem;
    line-height: 0.75;
    margin-right: 16px;
    margin-top: 8px;
    font-weight: 700;
    color: var(--accent);
}

/* Subheadings */
.article-body h3 {
    font-size: 2.2rem;
    margin-top: 70px;
    margin-bottom: 28px;
    font-weight: 600;
    letter-spacing: -0.03em;
}

.article-body em {
    font-style: italic;
    font-family: 'Playfair Display', serif;
    font-weight: 500;
}

/* --- 5. COMPONENTS --- */

/* Tech Stat Grid */
.stat-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 50px 0;
    margin: 60px 0;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.stat-item { text-align: center; flex: 1; }
.stat-border { width: 1px; height: 50px; background: var(--border-light); }

.stat-num { 
    display: block;
    font-family: 'Playfair Display', serif; 
    font-size: 3rem; 
    font-weight: 700; 
    color: var(--accent); 
    line-height: 1;
    margin-bottom: 10px;
}
.stat-label { 
    font-family: 'SF Mono', monospace; 
    font-size: 0.7rem; 
    text-transform: uppercase; 
    color: var(--text-secondary); 
    letter-spacing: 0.05em;
}

/* Full Width Image Break */
.full-width-break {
    width: 100vw;
    margin-left: 50%;
    transform: translateX(-50%);
    height: 70vh; /* Immersive height */
    position: relative;
    margin-top: 80px;
    margin-bottom: 100px;
    background: #000;
    overflow: hidden;
}

.full-width-break img {
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0.85; /* Slight dim for text overlay readability */
}

.full-width-break .overlay-content {
    position: absolute;
    bottom: 40px;
    left: 0; right: 0;
    z-index: 2;
}

.img-caption-light {
    color: rgba(255,255,255,0.9);
    font-family: 'SF Mono', monospace;
    font-size: 0.8rem;
}

/* Pull Quote */
.pull-quote {
    font-family: 'Playfair Display', serif;
    font-size: 2.4rem;
    line-height: 1.3;
    font-style: italic;
    color: var(--text-main);
    text-align: center;
    margin: 80px 0;
    position: relative;
    padding: 0 20px;
}

/* Info Box ("Tech Spec") */
.info-box {
    background: #F5F5F7;
    border-radius: 20px;
    padding: 40px;
    margin: 60px 0;
    border: 1px solid rgba(0,0,0,0.03);
}

.info-header {
    display: flex; align-items: center; gap: 12px; margin-bottom: 16px;
}
.status-dot {
    width: 10px; height: 10px; 
    background: var(--accent); 
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.15);
}

.info-box h4 {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.info-box p {
    font-size: 1rem;
    margin-bottom: 0;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* --- 6. FOOTER ACTIONS --- */
/* --- 6. FOOTER ACTIONS (Redesigned) --- */

.article-footer {
    background-color: var(--bg-body);
    max-width: 700px;
    margin: 80px auto 100px;
    padding-top: 40px;
    border-top: 1px solid rgba(0,0,0,0.06); /* Softer border */
}

.share-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Safe for mobile */
    gap: 20px;
}

.share-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-main);
}

.action-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Circular Icon Buttons */
.icon-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: #F5F5F7; /* Apple System Gray */
    color: var(--text-main);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1); /* Apple Ease */
    text-decoration: none;
    border: 1px solid transparent;
}

.icon-btn:hover {
    background-color: #E5E5EA; /* Darker gray on hover */
    transform: scale(1.05); /* Subtle pop */
    color: var(--text-main); /* Keep color consistent */
}

.icon-btn:active {
    transform: scale(0.95); /* Press effect */
}

/* Copy Link Pill Button */
.copy-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 44px;
    padding: 0 20px;
    border-radius: 999px; /* Pill shape */
    background-color: #F5F5F7;
    color: var(--text-main);
    border: none;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.copy-btn:hover {
    background-color: #E5E5EA;
    transform: scale(1.03);
}

.copy-btn:active {
    transform: scale(0.97);
}

/* Success State for Copy Button */
.copy-btn.copied {
    background-color: #34C759; /* Apple Green */
    color: white;
}

/* Mobile Tweak */
@media (max-width: 600px) {
    .share-container {
        justify-content: center;
        flex-direction: column;
        gap: 24px;
    }
}





/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    .article-body { max-width: 600px; }
    .headline { font-size: 3.5rem; }
}

@media (max-width: 768px) {
    .article-header { padding-top: 120px; padding-bottom: 40px; }
    .headline { font-size: 2.5rem; }
    
    .divider { display: none; }
    
    .article-body { padding: 0 24px; }
    .article-body p { font-size: 1.15rem; }
    
    .stat-grid { flex-direction: column; gap: 32px; }
    .stat-border { width: 50px; height: 1px; }
    
    .pull-quote { font-size: 1.8rem; margin: 60px 0; }
    
    .full-width-break { height: 400px; }
    .overlay-content { padding: 0 24px; }
}





/* --- 2. FULL WIDTH CINEMATIC BREAK --- */
.full-width-break {
    /* Break out of the container grid */
    width: 100vw;
    margin-left: 50%;
    transform: translateX(-50%);
    
    /* Sizing */
    height: 85vh; /* Immersive, almost full screen */
    min-height: 600px;
    
    position: relative;
    margin-top: 100px;
    margin-bottom: 120px;
    background: #050505; /* Deep black backing */
    overflow: hidden; /* Masking for zoom effect */
}

/* The Image - Slow Zoom Animation */
.full-width-break img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.9;
    
    /* Hardware acceleration for smooth animation */
    will-change: transform;
    animation: slowZoom 20s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slowZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

/* Gradient Overlay - Ensures text readability */
.full-width-break::after {
    content: '';
    position: absolute;
    inset: 0;
    /* Gradient from bottom (dark) to top (transparent) */
    background: linear-gradient(
        to top, 
        rgba(0,0,0,0.8) 0%, 
        rgba(0,0,0,0.4) 30%, 
        transparent 100%
    );
    pointer-events: none;
    z-index: 1;
}

/* Caption Container Position */
.full-width-break .overlay-content {
    position: absolute;
    bottom: 40px;
    left: 0; 
    width: 100%;
    padding: 0 32px; /* Container padding match */
    z-index: 2;
    display: flex;
    justify-content: center; /* Center caption on large screens */
}

/* Caption Typography */
.img-caption-light {
    color: rgba(255, 255, 255, 0.95);
    font-family: 'SF Mono', 'Menlo', monospace;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    
    /* Glass backing for the text specifically (Optional, super readable) */
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 10px 20px;
    border-radius: 99px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

/* --- MOBILE OPTIMIZATION --- */
@media (max-width: 768px) {
    .full-width-break {
        height: 50vh; /* Shorter on mobile */
        margin-top: 60px;
        margin-bottom: 80px;
    }
    
    .full-width-break .overlay-content {
        bottom: 24px;
        justify-content: flex-start; /* Left align on mobile */
        padding: 0 24px;
    }
    
    .img-caption-light {
        font-size: 0.75rem;
        background: transparent; /* Remove pill bg on mobile for cleaner look */
        backdrop-filter: none;
        border: none;
        padding: 0;
        text-shadow: 0 2px 4px rgba(0,0,0,0.5); /* Shadow instead */
    }
}