:root {
    --bg-dark: #0F0F0F;
    --bg-panel: #161616;
    --bg-glass: rgba(22, 22, 22, 0.8);
    --gold: #65b3dc;
    --gold-dim: #377394;
    --text-main: #EAEAEA;
    --text-muted: #A0A0A0;
    --font-head: safe-area-inset-bottom;
    --font-body: 'Inter', sans-serif;
    --max-width: 1300px;
}

/* Base Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.8;
    overflow-x: hidden;
}

/* --- Scroll Progress --- */
.scroll-tracker {
    position: fixed; top: 0; left: 0; width: 100%; height: 4px;
    z-index: 9999; background: transparent;
}
.scroll-bar { height: 100%; background: var(--gold); width: 0%; transition: width 0.1s; }

/* --- Parallax Hero --- */
.article-hero {
    position: relative;
    height: 70vh;
    min-height: 500px;
    display: flex;
    align-items: flex-end;
    padding-bottom: 80px;
    overflow: hidden;
}
.hero-bg-image {
    position: absolute; top: 0; left: 0; width: 100%; height: 120%;
    background-size: cover; background-position: center;
    z-index: 0;
    animation: zoomSlow 20s infinite alternate;
}
.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(15,15,15,0.2), rgba(15,15,15,1));
    z-index: 1;
}
.hero-container {
    position: relative; z-index: 2; width: 90%; max-width: var(--max-width); margin: 0 auto;
}
.article-category {
    display: inline-block; background: var(--gold); color: #000;
    padding: 6px 16px; text-transform: uppercase; font-size: 12px;
    font-weight: 700; letter-spacing: 1px; margin-bottom: 20px;
}
.article-title {
    font-family: var(--font-head); font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.1; margin-bottom: 25px; max-width: 900px;
}
.article-meta {
    display: flex; align-items: center; gap: 15px; color: var(--text-muted); font-size: 0.9rem;
    flex-wrap: wrap;
}
.author-pill { display: flex; align-items: center; gap: 10px; color: var(--text-main); }
.author-avatar { width: 35px; height: 35px; border-radius: 50%; border: 1px solid var(--gold); }
.meta-divider { color: var(--gold-dim); }

@keyframes zoomSlow { from { transform: translateY(0) scale(1); } to { transform: translateY(-20px) scale(1.05); } }

/* --- Layout Grid --- */
.layout-wrapper {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 60px;
    width: 90%; max-width: var(--max-width);
    margin: 0 auto;
    padding: 60px 0 100px;
}

/* --- Main Content --- */
.main-content { font-size: 1.15rem; color: #d1d1d1; }
.main-content p { margin-bottom: 25px; }
.main-content h2 {
    font-family: var(--font-head); font-size: 2rem; color: var(--gold);
    margin: 50px 0 20px; padding-left: 20px; border-left: 3px solid var(--gold);
}
.main-content a { color: var(--gold); text-decoration: none; border-bottom: 1px dotted var(--gold); transition: all 0.3s; }
.main-content a:hover { color: #fff; border-bottom-style: solid; }

/* Key Takeaways Box (SEO Gold) */
.key-takeaways {
    background: linear-gradient(145deg, #1a1a1a, #222);
    border: 1px solid rgba(212, 175, 55, 0.2);
    padding: 30px; border-radius: 8px; margin-bottom: 40px;
}
.key-takeaways h3 { font-family: var(--font-head); font-size: 1.5rem; margin-bottom: 15px; color: #fff; }
.key-takeaways ul { list-style: none; padding: 0; }
.key-takeaways li { margin-bottom: 12px; position: relative; padding-left: 25px; }
.key-takeaways li::before {
    content: '✓'; color: var(--gold); position: absolute; left: 0; font-weight: bold;
}

/* Dropcap */
.dropcap {
    float: left; font-family: var(--font-head); font-size: 4.5rem;
    line-height: 0.8; margin-right: 15px; color: var(--gold);
}

/* Images */
.article-image { margin: 40px 0; }
.article-image img { width: 100%; border-radius: 4px; display: block; }
.article-image figcaption {
    text-align: center; font-size: 0.9rem; color: var(--text-muted); margin-top: 10px; font-style: italic;
}

/* Quote Box */
.quote-box {
    margin: 50px 0; padding: 40px; text-align: center;
    border-top: 1px solid var(--gold-dim); border-bottom: 1px solid var(--gold-dim);
    font-family: var(--font-head); font-size: 1.8rem; line-height: 1.4; color: #fff;
}
.quote-box cite { display: block; font-size: 1rem; color: var(--gold); margin-top: 20px; font-family: var(--font-body); font-style: normal; text-transform: uppercase; letter-spacing: 2px; }

/* Product Showcase Card */
.product-showcase-card {
    display: flex; gap: 30px; background: var(--bg-panel); padding: 30px;
    border-radius: 8px; border: 1px solid rgba(255,255,255,0.05); align-items: center; margin: 40px 0;
}
.showcase-img { width: 180px; height: 140px; flex-shrink: 0; overflow: hidden; border-radius: 4px; }
.showcase-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.product-showcase-card:hover .showcase-img img { transform: scale(1.1); }
.showcase-info h4 { font-family: var(--font-head); font-size: 1.5rem; margin-bottom: 10px; color: #fff; }
.showcase-info .tag { font-size: 10px; background: var(--gold); color: #000; padding: 2px 8px; text-transform: uppercase; font-weight: 700; }
.showcase-info p { font-size: 0.95rem; margin-bottom: 20px; }
.showcase-actions { display: flex; gap: 15px; }
.btn-primary { background: var(--gold); color: #000 !important; padding: 10px 20px; border-radius: 4px; font-weight: 600; border: none; }
.btn-secondary { border: 1px solid var(--text-muted); color: var(--text-main) !important; padding: 10px 20px; border-radius: 4px; }

/* Checklist */
.check-list { list-style: none; margin-bottom: 30px; }
.check-list li { margin-bottom: 15px; padding-left: 30px; position: relative; }
.check-list li::before {
    content: ''; position: absolute; left: 0; top: 8px; width: 8px; height: 8px; background: var(--gold); border-radius: 50%;
}

/* --- Sidebar --- */
.sidebar { position: relative; }
.sticky-wrapper { position: sticky; top: 100px; }

.sidebar-widget {
    background: var(--bg-panel); padding: 30px; border-radius: 8px;
    margin-bottom: 30px; border: 1px solid rgba(255,255,255,0.03);
}
.widget-title {
    font-family: var(--font-head); font-size: 1.3rem; margin-bottom: 20px;
    padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* TOC */
#toc ul { list-style: none; border-left: 2px solid rgba(255,255,255,0.1); }
#toc li { margin-bottom: 0; }
#toc a {
    display: block; padding: 8px 0 8px 20px; color: var(--text-muted); font-size: 0.95rem; position: relative; text-decoration: none; transition: all 0.2s;
}
#toc a:hover, #toc a.active { color: var(--gold); padding-left: 25px; }
#toc a.active { border-left: 2px solid var(--gold); margin-left: -2px; font-weight: 500; }

/* CTA Widget */
.cta-widget { text-align: center; background: linear-gradient(135deg, #1a1a1a, #000); border: 1px solid var(--gold); }
.cta-widget h4 { color: var(--gold); font-family: var(--font-head); font-size: 1.5rem; margin-bottom: 10px; }
.cta-btn {
    display: inline-block; margin-top: 15px; background: var(--gold); color: #000;
    padding: 12px 25px; font-weight: 700; border-radius: 50px; text-decoration: none;
    transition: transform 0.3s;
}
.cta-btn:hover { transform: translateY(-3px); }

/* Trending Widget */
.trending-list { list-style: none; }
.trending-list li { margin-bottom: 15px; }
.trending-list a { display: flex; gap: 15px; align-items: center; text-decoration: none; }
.trending-list .number { font-family: var(--font-head); font-size: 1.5rem; color: rgba(255,255,255,0.1); font-style: italic; }
.trending-list .text { font-size: 0.95rem; color: var(--text-main); transition: color 0.3s; }
.trending-list a:hover .text { color: var(--gold); }

/* --- Mobile Bottom Nav (Hidden on Desktop) --- */
.mobile-bottom-nav { display: none; }

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .layout-wrapper { grid-template-columns: 1fr; }
    .sidebar { display: none; } /* Hide Sidebar on mobile/tablet, use bottom nav */

    .article-hero { height: 50vh; }
    .article-title { font-size: 2.5rem; }
}

@media (max-width: 768px) {
    .nav-spacer { height: 60px; }
    .article-hero { padding-bottom: 40px; }

    .product-showcase-card { flex-direction: column; text-align: center; }
    .showcase-img { width: 100%; height: 200px; }
    .showcase-actions { justify-content: center; }

    .dropcap { font-size: 3.5rem; }

    /* Mobile Bottom Nav */
    .mobile-bottom-nav {
        display: flex; position: fixed; bottom: 0; left: 0; width: 100%;
        background: rgba(15,15,15,0.95); backdrop-filter: blur(10px);
        border-top: 1px solid rgba(255,255,255,0.1); padding: 10px 20px;
        justify-content: space-between; align-items: center; z-index: 1000;
        padding-bottom: max(10px, env(safe-area-inset-bottom));
    }
    .mobile-nav-btn {
        background: none; border: none; color: var(--text-muted); font-size: 0.8rem;
        display: flex; flex-direction: column; align-items: center; gap: 4px;
        font-family: var(--font-body);
    }
    .mobile-nav-btn.highlight {
        background: var(--gold); color: #000; padding: 8px 20px; border-radius: 50px;
        font-weight: 600; font-size: 0.9rem; text-decoration: none;
    }
    .mobile-nav-btn .icon { font-size: 1.2rem; }
}
