/* Tindol Landing Page — Modern Premium Design */

:root {
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-serif: 'Merriweather', Georgia, serif;
    --font-mono: 'SF Mono', 'Fira Code', Monaco, monospace;

    --bg: #fafbfc;
    --surface: #ffffff;
    --surface-2: #f8fafc;
    --text: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --accent: #2563eb;
    --accent-soft: #dbeafe;
    --accent-hover: #1d4ed8;
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --success: #10b981;
    --warning: #f59e0b;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.04);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.06), 0 2px 4px -2px rgb(0 0 0 / 0.04);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.04);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.08), 0 8px 10px -6px rgb(0 0 0 / 0.04);
    --max-width: 1140px;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0b1120;
        --surface: #111827;
        --surface-2: #1e293b;
        --text: #f8fafc;
        --text-secondary: #cbd5e1;
        --text-muted: #64748b;
        --accent: #60a5fa;
        --accent-soft: rgba(96, 165, 250, 0.15);
        --accent-hover: #93c5fd;
        --border: #1e293b;
        --border-light: #0f172a;
    }
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-sans);
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background: var(--accent-soft);
    color: var(--accent);
}

/* ═══════════════════════════════════════════ */
/* NAVIGATION                                 */
/* ═══════════════════════════════════════════ */
.site-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(250, 251, 252, 0.8);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid var(--border-light);
    transition: box-shadow 0.3s ease;
}

.site-nav.scrolled {
    box-shadow: var(--shadow-sm);
}

@media (prefers-color-scheme: dark) {
    .site-nav {
        background: rgba(11, 17, 32, 0.8);
    }
}

.nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-weight: 800;
    font-size: 20px;
    letter-spacing: -0.5px;
    color: var(--text);
    text-decoration: none;
    background: linear-gradient(135deg, var(--accent), var(--success));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.nav-links a:hover {
    color: var(--accent);
    background: var(--accent-soft);
}

.nav-links .nav-cta {
    background: var(--accent);
    color: #fff;
    font-weight: 600;
}

.nav-links .nav-cta:hover {
    background: var(--accent-hover);
    color: #fff;
}

.nav-mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-mobile-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-secondary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ═══════════════════════════════════════════ */
/* HERO                                       */
/* ═══════════════════════════════════════════ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 120px 24px 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(37, 99, 235, 0.12), transparent),
        radial-gradient(ellipse 60% 40% at 80% 60%, rgba(16, 185, 129, 0.08), transparent);
    pointer-events: none;
}

@media (prefers-color-scheme: dark) {
    .hero-bg {
        background:
            radial-gradient(ellipse 80% 50% at 50% -20%, rgba(96, 165, 250, 0.1), transparent),
            radial-gradient(ellipse 60% 40% at 80% 60%, rgba(16, 185, 129, 0.06), transparent);
    }
}

.hero-content {
    position: relative;
    max-width: 760px;
    text-align: center;
    animation: fadeUp 0.8s ease-out both;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent);
    background: var(--accent-soft);
    padding: 6px 16px;
    border-radius: 100px;
    margin-bottom: 32px;
    border: 1px solid var(--accent-soft);
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(2.4rem, 6vw, 4.2rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
    color: var(--text);
}

.hero-accent {
    background: linear-gradient(135deg, var(--accent), var(--success));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-lead {
    font-size: clamp(1.05rem, 1.8vw, 1.25rem);
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto 40px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 64px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 600;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    cursor: pointer;
    border: 1.5px solid transparent;
    transition: all 0.2s ease;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 4px 14px 0 rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px 0 rgba(37, 99, 235, 0.35);
}

.btn-ghost {
    background: var(--surface);
    color: var(--text-secondary);
    border-color: var(--border);
}

.btn-ghost:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-soft);
}

.btn-lg {
    padding: 14px 32px;
    font-size: 16px;
}

.hero-stats {
    display: flex;
    gap: 48px;
    justify-content: center;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-num {
    display: block;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1;
    color: var(--accent);
    font-family: var(--font-sans);
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 6px;
}

.hero-scroll {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-muted);
    animation: bounce 2s infinite;
}

/* ═══════════════════════════════════════════ */
/* SECTIONS                                   */
/* ═══════════════════════════════════════════ */
.section {
    padding: 100px 24px;
}

.section-alt {
    background: var(--surface-2);
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
}

.section-header {
    text-align: center;
    max-width: 560px;
    margin: 0 auto 64px;
}

.section-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent);
    background: var(--accent-soft);
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
}

.section-header h2 {
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    line-height: 1.2;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.section-cta {
    text-align: center;
    margin-top: 48px;
}

/* ═══════════════════════════════════════════ */
/* FEATURE GRID                               */
/* ═══════════════════════════════════════════ */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.feature-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 32px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--icon-color, var(--accent)), var(--success));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--accent-soft);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: var(--icon-color);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text);
}

.feature-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ═══════════════════════════════════════════ */
/* ARTICLE PREVIEW GRID                       */
/* ═══════════════════════════════════════════ */
.article-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}

.article-preview-card {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 28px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.article-preview-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--success));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.article-preview-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-soft);
}

.article-preview-card:hover::before {
    opacity: 1;
}

.article-preview-card:hover .preview-title {
    color: var(--accent);
}

.preview-tag {
    display: inline-flex;
    align-self: flex-start;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--accent);
    background: var(--accent-soft);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    margin-bottom: 14px;
}

.preview-title {
    font-family: var(--font-serif);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 10px;
    color: var(--text);
    transition: color 0.2s ease;
}

.preview-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.55;
    margin-bottom: 16px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.preview-meta {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
    padding-top: 12px;
    border-top: 1px solid var(--border-light);
}

/* ═══════════════════════════════════════════ */
/* PHILOSOPHY                                 */
/* ═══════════════════════════════════════════ */
.philosophy-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.philosophy-text {
    max-width: 520px;
}

.philosophy-text h2 {
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
    line-height: 1.2;
}

.philosophy-text p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
}

.philosophy-text strong {
    color: var(--text);
    font-weight: 700;
}

.philosophy-list {
    list-style: none;
    margin-top: 24px;
}

.philosophy-list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.philosophy-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent-soft);
}

/* Code Window */
.code-window {
    background: #0d1117;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 1px solid #21262d;
    font-family: var(--font-mono);
    font-size: 14px;
    line-height: 1.7;
}

.code-window-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 18px;
    background: #161b22;
    border-bottom: 1px solid #21262d;
}

.code-window-header span:first-child,
.code-window-header span:nth-child(2),
.code-window-header span:nth-child(3) {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.code-window-header span:first-child { background: #ff5f56; }
.code-window-header span:nth-child(2) { background: #ffbd2e; }
.code-window-header span:nth-child(3) { background: #27c93f; }

.code-filename {
    margin-left: auto;
    font-size: 12px;
    color: #8b949e;
    font-family: var(--font-sans);
}

.code-window pre {
    padding: 24px;
    overflow-x: auto;
    color: #c9d1d9;
    background: transparent;
}

.code-window code { font-family: inherit; }
.code-kw { color: #ff7b72; }
.code-fn { color: #d2a8ff; }
.code-param { color: #ffa657; }
.code-cm { color: #8b949e; }
.code-str { color: #a5d6ff; }

/* ═══════════════════════════════════════════ */
/* CTA SECTION                                */
/* ═══════════════════════════════════════════ */
.section-cta-bg {
    background: linear-gradient(135deg, var(--accent-soft), transparent);
    position: relative;
    overflow: hidden;
}

.section-cta-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 50% at 50% 120%, rgba(37, 99, 235, 0.08), transparent);
    pointer-events: none;
}

.cta-block {
    position: relative;
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}

.cta-block h2 {
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.cta-block p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 36px;
    line-height: 1.6;
}

.cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ═══════════════════════════════════════════ */
/* FOOTER                                     */
/* ═══════════════════════════════════════════ */
.site-footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 64px 24px 0;
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 64px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--border-light);
}

.footer-logo {
    font-weight: 800;
    font-size: 20px;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--accent), var(--success));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-brand p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-top: 12px;
    max-width: 320px;
}

.footer-links {
    display: flex;
    gap: 48px;
}

.footer-col h4 {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.footer-col a {
    display: block;
    font-size: 14px;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 10px;
    transition: color 0.2s ease;
}

.footer-col a:hover {
    color: var(--accent);
}

.footer-bottom {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 24px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 13px;
    color: var(--text-muted);
}

/* ═══════════════════════════════════════════ */
/* ANIMATIONS                                 */
/* ═══════════════════════════════════════════ */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-8px); }
    60% { transform: translateX(-50%) translateY(-4px); }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ═══════════════════════════════════════════ */
/* RESPONSIVE                                 */
/* ═══════════════════════════════════════════ */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--surface);
        flex-direction: column;
        padding: 16px 24px;
        border-bottom: 1px solid var(--border);
        gap: 4px;
        box-shadow: var(--shadow-lg);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-mobile-toggle {
        display: flex;
    }

    .hero {
        padding: 100px 20px 60px;
        min-height: auto;
    }

    .hero-stats {
        gap: 32px;
    }

    .section {
        padding: 64px 20px;
    }

    .feature-grid,
    .article-preview-grid {
        grid-template-columns: 1fr;
    }

    .philosophy-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .philosophy-visual {
        order: -1;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-links {
        gap: 32px;
    }

    .cta-actions {
        flex-direction: column;
        align-items: center;
    }

    .btn-lg {
        width: 100%;
        justify-content: center;
        max-width: 280px;
    }
}

/* ═══════════════════════════════════════════ */
/* NEWSLETTER                               */
/* ═══════════════════════════════════════════ */
.newsletter-section {
    background: linear-gradient(135deg, var(--surface-2) 0%, var(--surface) 100%);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.newsletter-form {
    display: flex;
    gap: 12px;
    max-width: 480px;
    margin: 32px auto 0;
}

.newsletter-form input[type="email"] {
    flex: 1;
    padding: 14px 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
    color: var(--text);
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s ease;
}

.newsletter-form input[type="email"]:focus {
    border-color: var(--accent);
}

.newsletter-form button {
    padding: 14px 24px;
    white-space: nowrap;
}

.newsletter-privacy {
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 16px;
}

/* ═══════════════════════════════════════════ */
/* DARK MODE TOGGLE                         */
/* ═══════════════════════════════════════════ */
.theme-toggle {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 8px 12px;
    cursor: pointer;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    transition: all 0.2s ease;
}

.theme-toggle:hover {
    border-color: var(--accent);
}

/* Dark mode colors */
[data-theme="dark"] {
    --bg: #0f0f0f;
    --surface: #1a1a1a;
    --surface-2: #252525;
    --text: #f5f5f5;
    --text-secondary: #a0a0a0;
    --text-muted: #666;
    --border: #333;
    --border-light: #2a2a2a;
    --accent-soft: rgba(59, 130, 246, 0.15);
}

/* ═══════════════════════════════════════════ */
/* READING PROGRESS BAR                     */
/* ═══════════════════════════════════════════ */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--success));
    z-index: 1001;
    transition: width 0.1s linear;
}

/* ═══════════════════════════════════════════ */
/* TABLE OF CONTENTS                        */
/* ═══════════════════════════════════════════ */
.article-toc {
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    padding: 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 14px;
}

.article-toc h4 {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.article-toc ul {
    list-style: none;
}

.article-toc li {
    margin-bottom: 8px;
}

.article-toc a {
    color: var(--text-secondary);
    text-decoration: none;
    display: block;
    padding: 4px 0;
    transition: color 0.2s ease;
}

.article-toc a:hover,
.article-toc a.active {
    color: var(--accent);
}

/* ═══════════════════════════════════════════ */
/* RELATED ARTICLES                         */
/* ═══════════════════════════════════════════ */
.related-articles {
    margin-top: 64px;
    padding-top: 48px;
    border-top: 1px solid var(--border);
}

.related-articles h3 {
    font-size: 20px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* ═══════════════════════════════════════════ */
/* ANCHOR LINKS                             */
/* ═══════════════════════════════════════════ */
.heading-anchor {
    opacity: 0;
    margin-left: 8px;
    color: var(--text-muted);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

h2:hover .heading-anchor,
h3:hover .heading-anchor {
    opacity: 1;
}

/* ═══════════════════════════════════════════ */
/* SERIES/COLLECTIONS                       */
/* ═══════════════════════════════════════════ */
.series-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    background: var(--accent-soft);
    color: var(--accent);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
}

.series-nav {
    display: flex;
    gap: 12px;
    margin-top: 32px;
    padding: 20px;
    background: var(--surface-2);
    border-radius: var(--radius-md);
}

.series-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
}

.series-nav a.current {
    color: var(--accent);
    font-weight: 600;
}

/* ═══════════════════════════════════════════ */
/* RSS LINK                                 */
/* ═══════════════════════════════════════════ */
.rss-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-muted);
    text-decoration: none;
}

.rss-link:hover {
    color: var(--accent);
}

/* ═══════════════════════════════════════════ */
/* ACCOUNT PAGE STYLES                      */
/* ═══════════════════════════════════════════ */
.account-section {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.account-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 40px;
    margin-top: 32px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
}

/* Responsive for new components */
@media (max-width: 768px) {
    .newsletter-form {
        flex-direction: column;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .article-toc {
        position: relative;
        top: 0;
        max-height: none;
        margin-bottom: 32px;
    }
}
