/* ==========================================================================
   SYNTAX.AI BLOG ARTICLES - SHARED STYLESHEET
   Version: 1.0.0
   Last Updated: November 28, 2025
   ========================================================================== */

/* ==========================================================================
   TABLE OF CONTENTS
   ==========================================================================
   1. CSS Custom Properties (Variables)
   2. Reset & Base Styles
   3. Typography Scale
   4. Background Animations
   5. Navigation
   6. Article Container & Header
   7. Transparency/Disclosure Boxes
   8. Article Content Styling
   9. Highlight Boxes (All Variants)
   10. Statistics Sections
   11. Comparison Tables
   12. Pull Quotes
   13. Lists & Code Blocks
   14. Related Articles Section
   15. Newsletter Section
   16. Footer
   17. Animations & Transitions
   18. Responsive Breakpoints
   19. Mobile Navigation (Hamburger Menu)
   ========================================================================== */


/* ==========================================================================
   1. CSS CUSTOM PROPERTIES
   ========================================================================== */

:root {
    /* Primary Colors */
    --primary: #6366f1;
    --secondary: #8b5cf6;
    --accent: #ec4899;

    /* Status Colors */
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;

    /* Neutral Colors */
    --dark: #0f172a;
    --dark-secondary: #1e293b;
    --light: #f8fafc;

    /* Glass Effect */
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(99, 102, 241, 0.2);

    /* Typography */
    --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    --font-mono: 'JetBrains Mono', 'Courier New', monospace;

    /* Spacing */
    --spacing-xs: 8px;
    --spacing-sm: 15px;
    --spacing-md: 25px;
    --spacing-lg: 40px;
    --spacing-xl: 60px;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 15px;
    --radius-lg: 20px;
    --radius-full: 50px;
}


/* ==========================================================================
   2. RESET & BASE STYLES
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background: var(--dark);
    color: var(--light);
    line-height: 1.8;
    overflow-x: hidden;
}


/* ==========================================================================
   3. TYPOGRAPHY SCALE
   ========================================================================== */

h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
}

h2 {
    font-size: 1.8rem;
    font-weight: 800;
    margin: var(--spacing-xl) 0 var(--spacing-md);
}

h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin: var(--spacing-lg) 0 var(--spacing-sm);
    color: var(--light);
}

p {
    margin-bottom: var(--spacing-md);
    color: rgba(248, 250, 252, 0.9);
}


/* ==========================================================================
   4. BACKGROUND ANIMATIONS
   ========================================================================== */

body::before,
body::after {
    content: '';
    position: fixed;
    width: 800px;
    height: 800px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.3;
    z-index: -1;
    animation: float 20s ease-in-out infinite;
}

body::before {
    background: radial-gradient(circle, var(--primary), transparent);
    top: -400px;
    left: -200px;
}

body::after {
    background: radial-gradient(circle, var(--secondary), transparent);
    bottom: -400px;
    right: -200px;
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(100px, -100px) scale(1.1); }
    66% { transform: translate(-100px, 100px) scale(0.9); }
}

/* Third orb for articles that need it */
.orb-third {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent), transparent);
    filter: blur(120px);
    opacity: 0.2;
    z-index: -1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: float 25s ease-in-out infinite;
    animation-delay: 5s;
}


/* ==========================================================================
   5. NAVIGATION
   ========================================================================== */

nav {
    position: fixed;
    width: 100%;
    padding: 20px 50px;
    z-index: 1000;
    backdrop-filter: blur(20px);
    background: rgba(15, 23, 42, 0.9);
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    color: rgba(248, 250, 252, 0.8);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary);
}


/* ==========================================================================
   6. ARTICLE CONTAINER & HEADER
   ========================================================================== */

.article-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 120px 30px 80px;
}

.article-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.article-badge {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.2));
    border: 1px solid rgba(99, 102, 241, 0.4);
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #a5b4fc;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: 0.95rem;
    color: rgba(248, 250, 252, 0.6);
    flex-wrap: wrap;
}


/* ==========================================================================
   7. TRANSPARENCY/DISCLOSURE BOXES
   ========================================================================== */

.transparency-box,
.disclosure-box {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(139, 92, 246, 0.08));
    border: 1px solid rgba(99, 102, 241, 0.4);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.transparency-box h4,
.disclosure-box h4 {
    color: var(--primary);
    margin-bottom: 12px;
    font-size: 1rem;
}

.transparency-box p,
.disclosure-box p {
    font-size: 0.95rem;
    color: rgba(248, 250, 252, 0.85);
    margin-bottom: 12px;
}

.transparency-box p:last-child,
.disclosure-box p:last-child {
    margin-bottom: 0;
}


/* ==========================================================================
   8. ARTICLE CONTENT STYLING
   ========================================================================== */

.article-content {
    font-size: 1.125rem;
    line-height: 1.8;
}

.article-content h2 {
    background: linear-gradient(135deg, var(--light), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.article-content strong {
    color: var(--light);
    font-weight: 700;
}

.article-content em {
    color: rgba(248, 250, 252, 0.8);
    font-style: italic;
}

.article-content a {
    color: var(--primary);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.article-content a:hover {
    border-bottom-color: var(--primary);
}


/* ==========================================================================
   9. HIGHLIGHT BOXES (ALL VARIANTS)
   ========================================================================== */

.highlight-box {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.05));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 35px;
    margin: var(--spacing-lg) 0;
}

/* Context - Blue */
.highlight-box.context {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(139, 92, 246, 0.08));
    border: 1px solid rgba(99, 102, 241, 0.3);
}

/* Philosophy - Purple */
.highlight-box.philosophy {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(236, 72, 153, 0.08));
    border: 1px solid rgba(139, 92, 246, 0.3);
}

/* Honest/Disclosure - Teal */
.highlight-box.honest {
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.15), rgba(6, 182, 212, 0.08));
    border: 1px solid rgba(20, 184, 166, 0.4);
}

/* Warning - Amber */
.highlight-box.warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(239, 68, 68, 0.08));
    border: 1px solid rgba(245, 158, 11, 0.4);
}

/* Caveat - Gray */
.highlight-box.caveat {
    background: linear-gradient(135deg, rgba(148, 163, 184, 0.15), rgba(100, 116, 139, 0.08));
    border: 1px solid rgba(148, 163, 184, 0.3);
}

/* Danger - Red */
.highlight-box.danger {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(220, 38, 38, 0.08));
    border: 1px solid rgba(239, 68, 68, 0.4);
}

/* Success - Green */
.highlight-box.success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(5, 150, 105, 0.08));
    border: 1px solid rgba(16, 185, 129, 0.4);
}

/* Research - Cyan/Blue */
.highlight-box.research {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.15), rgba(99, 102, 241, 0.08));
    border: 1px solid rgba(14, 165, 233, 0.4);
}

.highlight-box h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
}

.highlight-box.context h4 { color: var(--primary); }
.highlight-box.philosophy h4 { color: var(--secondary); }
.highlight-box.honest h4 { color: #14b8a6; }
.highlight-box.warning h4 { color: var(--warning); }
.highlight-box.caveat h4 { color: #94a3b8; }
.highlight-box.danger h4 { color: var(--danger); }
.highlight-box.success h4 { color: var(--success); }
.highlight-box.research h4 { color: #0ea5e9; }


/* ==========================================================================
   10. STATISTICS SECTIONS
   ========================================================================== */

.stats-section {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    margin: 50px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
}

.stat-item {
    padding: 25px 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-md);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

/* Stat number color variants */
.stat-number.hype {
    background: linear-gradient(135deg, var(--danger), var(--warning));
    -webkit-background-clip: text;
    background-clip: text;
}

.stat-number.reality {
    background: linear-gradient(135deg, var(--success), #06b6d4);
    -webkit-background-clip: text;
    background-clip: text;
}

.stat-number.neutral {
    background: linear-gradient(135deg, #94a3b8, #64748b);
    -webkit-background-clip: text;
    background-clip: text;
}

.stat-label {
    font-size: 0.95rem;
    color: rgba(248, 250, 252, 0.7);
    line-height: 1.4;
}


/* ==========================================================================
   11. COMPARISON TABLES
   ========================================================================== */

.comparison-table {
    width: 100%;
    margin: var(--spacing-lg) 0;
    border-collapse: collapse;
    background: var(--glass);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.comparison-table th,
.comparison-table td {
    padding: 20px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.comparison-table th {
    background: rgba(99, 102, 241, 0.1);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table .table-highlight {
    color: var(--primary);
    font-weight: 700;
}

/* Wrapper for horizontal scroll on mobile */
.table-wrapper {
    overflow-x: auto;
    margin: var(--spacing-lg) 0;
    border-radius: var(--radius-md);
}


/* ==========================================================================
   12. PULL QUOTES
   ========================================================================== */

.pull-quote {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
    margin: var(--spacing-xl) 0;
    padding: var(--spacing-lg);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.05));
    border-left: 4px solid var(--primary);
    border-right: 4px solid var(--secondary);
    border-radius: var(--radius-md);
    color: var(--light);
}

blockquote {
    font-size: 1.3rem;
    font-style: italic;
    line-height: 1.6;
    margin: var(--spacing-lg) 0;
    padding: var(--spacing-md) var(--spacing-lg);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.05));
    border-left: 4px solid var(--primary);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    color: rgba(248, 250, 252, 0.9);
}

blockquote cite {
    display: block;
    margin-top: var(--spacing-sm);
    font-size: 0.95rem;
    font-style: normal;
    color: rgba(248, 250, 252, 0.6);
}


/* ==========================================================================
   13. LISTS & CODE BLOCKS
   ========================================================================== */

.article-content ul,
.article-content ol {
    margin: var(--spacing-md) 0 var(--spacing-md) 30px;
    color: rgba(248, 250, 252, 0.9);
}

.article-content li {
    margin-bottom: 12px;
    padding-left: 10px;
}

.article-content code {
    font-family: var(--font-mono);
    font-size: 0.95em;
    background: rgba(99, 102, 241, 0.15);
    padding: 2px 8px;
    border-radius: 4px;
    color: #a5b4fc;
}

.article-content pre {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    overflow-x: auto;
    margin: var(--spacing-md) 0;
}

.article-content pre code {
    background: none;
    padding: 0;
}

/* Code block with header */
.code-block {
    margin: var(--spacing-md) 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--glass-border);
}

.code-block-header {
    background: rgba(99, 102, 241, 0.1);
    padding: 10px 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(248, 250, 252, 0.7);
    border-bottom: 1px solid var(--glass-border);
}

.code-block pre {
    margin: 0;
    border: none;
    border-radius: 0;
}


/* ==========================================================================
   14. RELATED ARTICLES SECTION
   ========================================================================== */

.related-articles {
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--glass-border);
}

.related-articles h3 {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: var(--light);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.related-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    display: block;
}

.related-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.2);
}

.related-card h4 {
    color: var(--light);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.related-card p {
    color: rgba(248, 250, 252, 0.7);
    font-size: 0.9rem;
    margin-bottom: var(--spacing-sm);
}

.related-meta {
    font-size: 0.8rem;
    color: var(--primary);
}


/* ==========================================================================
   15. NEWSLETTER SECTION
   ========================================================================== */

.newsletter-section {
    margin: 80px 0;
    padding: var(--spacing-xl) var(--spacing-lg);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.1));
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: var(--radius-lg);
    text-align: center;
}

.newsletter-section h3 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: var(--spacing-sm);
    background: linear-gradient(135deg, var(--light), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.newsletter-section p {
    font-size: 1.1rem;
    color: rgba(248, 250, 252, 0.8);
    margin-bottom: var(--spacing-md);
}

.newsletter-form {
    display: flex;
    gap: var(--spacing-sm);
    max-width: 500px;
    margin: 0 auto;
    flex-wrap: wrap;
    justify-content: center;
}

.newsletter-form input {
    flex: 1;
    min-width: 250px;
    padding: 15px 25px;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: var(--radius-full);
    color: var(--light);
    font-size: 16px;
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--primary);
}

.newsletter-form input::placeholder {
    color: rgba(248, 250, 252, 0.5);
}

.newsletter-form button {
    padding: 15px 35px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    border-radius: var(--radius-full);
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
}


/* ==========================================================================
   16. FOOTER
   ========================================================================== */

footer {
    text-align: center;
    padding: 50px 20px;
    border-top: 1px solid var(--glass-border);
    color: rgba(248, 250, 252, 0.5);
}

footer a {
    color: var(--primary);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}


/* ==========================================================================
   17. ANIMATIONS & TRANSITIONS
   ========================================================================== */

/* Fade in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

/* Pulse animation for emphasis */
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

/* Gradient text animation */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}


/* ==========================================================================
   18. RESPONSIVE BREAKPOINTS
   ========================================================================== */

@media (max-width: 768px) {
    nav {
        padding: 15px 20px;
    }

    .nav-links {
        display: none;
    }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(15, 23, 42, 0.98);
        padding: 20px;
        gap: 15px;
        border-bottom: 1px solid var(--glass-border);
    }

    .hamburger {
        display: flex;
    }

    .article-container {
        padding: 100px 15px 40px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .pull-quote {
        font-size: 1.3rem;
        padding: var(--spacing-md);
    }

    blockquote {
        font-size: 1.1rem;
        padding: var(--spacing-sm) var(--spacing-md);
    }

    .comparison-table {
        font-size: 0.9rem;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 12px;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form input {
        min-width: 100%;
    }

    .highlight-box {
        padding: var(--spacing-md);
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .article-meta {
        flex-direction: column;
        gap: 5px;
    }

    .article-meta span:nth-child(2),
    .article-meta span:nth-child(4) {
        display: none; /* Hide bullet separators */
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .pull-quote {
        font-size: 1.1rem;
    }
}


/* ==========================================================================
   19. MOBILE NAVIGATION (HAMBURGER MENU)
   ========================================================================== */

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    padding: 5px;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--light);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
}


/* ==========================================================================
   20. PROBLEM & SOLUTION CARDS
   ========================================================================== */

.problem-grid,
.solution-grid {
    display: grid;
    gap: 30px;
    margin: 40px 0;
}

.problem-card {
    display: flex;
    gap: 25px;
    padding: 35px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(15, 23, 42, 0.5));
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: var(--radius-md);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.problem-card:hover {
    transform: translateX(5px);
    border-color: var(--warning);
}

.solution-card {
    display: flex;
    gap: 25px;
    padding: 35px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(15, 23, 42, 0.5));
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: var(--radius-md);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.solution-card:hover {
    transform: translateX(5px);
    border-color: var(--success);
}

.problem-icon,
.solution-icon {
    width: 60px;
    height: 60px;
    min-width: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.problem-icon {
    background: linear-gradient(135deg, var(--warning), var(--danger));
}

.solution-icon {
    background: linear-gradient(135deg, var(--success), var(--primary));
}

.problem-icon svg,
.solution-icon svg {
    width: 30px;
    height: 30px;
    stroke: white;
    fill: none;
}

.problem-content h3,
.solution-content h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.problem-content p,
.solution-content p {
    color: rgba(248, 250, 252, 0.8);
    margin: 0;
}


/* ==========================================================================
   21. INCIDENT & CALLOUT BOXES
   ========================================================================== */

.incident-box {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(15, 23, 42, 0.5));
    border-left: 4px solid var(--danger);
    padding: 30px;
    margin: 40px 0;
    border-radius: var(--radius-sm);
}

.incident-box h4 {
    color: var(--danger);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.incident-box p {
    margin: 0;
    color: rgba(248, 250, 252, 0.85);
}

.callout {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(236, 72, 153, 0.05));
    border-left: 4px solid var(--primary);
    padding: 30px;
    margin: 40px 0;
    border-radius: var(--radius-sm);
}

.callout p {
    margin: 0;
    font-style: italic;
    font-size: 1.15rem;
    color: rgba(248, 250, 252, 0.9);
}


/* ==========================================================================
   22. CTA SECTIONS & BUTTONS
   ========================================================================== */

.cta-button {
    padding: 10px 25px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    border-radius: var(--radius-full);
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
}

.cta-section {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(236, 72, 153, 0.1));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 60px 40px;
    text-align: center;
    margin: 80px 0 60px;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: rgba(248, 250, 252, 0.8);
}

.cta-btn {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    text-decoration: none;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.4);
}


/* ==========================================================================
   23. STATS HIGHLIGHT VARIANT
   ========================================================================== */

.stats-highlight {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.05));
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: var(--radius-lg);
    padding: 50px 40px;
    margin: 60px 0;
    backdrop-filter: blur(10px);
}

.stats-highlight.warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(239, 68, 68, 0.05));
    border-color: rgba(245, 158, 11, 0.3);
}

.stats-highlight h3 {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 40px;
}

.stats-highlight.warning h3 {
    color: var(--warning);
}

.stat-box {
    text-align: center;
    padding: 30px 20px;
    background: rgba(15, 23, 42, 0.5);
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.stat-box:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.stat-box:hover.warning {
    border-color: var(--warning);
}


/* ==========================================================================
   24. NAV CONTAINER VARIANT
   ========================================================================== */

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav.scrolled {
    padding: 15px 50px;
    background: rgba(15, 23, 42, 0.95);
}


/* ==========================================================================
   25. UTILITY CLASSES
   ========================================================================== */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-lg { margin-top: var(--spacing-lg); }
.mb-lg { margin-bottom: var(--spacing-lg); }

.hidden { display: none; }
.visible { display: block; }

.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-danger {
    background: linear-gradient(135deg, var(--danger), var(--warning));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-success {
    background: linear-gradient(135deg, var(--success), #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}


/* ==========================================================================
   21. THEME VARIATIONS
   ========================================================================== */

/* ---- Dark Theme (Default) ---- */
/* Standard purple/indigo orbs via body::before/after */

/* Warning/Danger theme orbs - add class to body */
body.theme-warning::before {
    background: radial-gradient(circle, var(--warning), transparent);
}

body.theme-warning::after {
    background: radial-gradient(circle, var(--danger), transparent);
}

/* Danger/Warning theme (reverse) */
body.theme-danger::before {
    background: radial-gradient(circle, var(--danger), transparent);
}

body.theme-danger::after {
    background: radial-gradient(circle, var(--warning), transparent);
}

/* Success theme orbs */
body.theme-success::before {
    background: radial-gradient(circle, var(--success), transparent);
}

body.theme-success::after {
    background: radial-gradient(circle, #06b6d4, transparent);
}


/* ---- Alternative Background Animation (div-based orbs) ---- */
/* Use when you need more than 2 orbs or specific positioning */

.bg-animation {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    background: linear-gradient(125deg, #0f172a 0%, #1e1b4b 50%, #0f172a 100%);
    pointer-events: none;
}

/* When using .bg-animation, disable body pseudo-element orbs */
body.use-bg-animation::before,
body.use-bg-animation::after {
    display: none;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.3;
    animation: float 30s infinite ease-in-out;
}

.orb1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary), transparent);
    top: -300px;
    right: -100px;
}

.orb2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--secondary), transparent);
    bottom: -250px;
    left: -100px;
    animation-delay: 10s;
}

.orb3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--accent), transparent);
    top: 50%;
    left: 30%;
    animation-delay: 5s;
}

/* Color variants for orbs */
.orb1.warning { background: radial-gradient(circle, var(--warning), transparent); }
.orb1.danger { background: radial-gradient(circle, var(--danger), transparent); }
.orb1.success { background: radial-gradient(circle, var(--success), transparent); }

.orb2.warning { background: radial-gradient(circle, var(--warning), transparent); }
.orb2.danger { background: radial-gradient(circle, var(--danger), transparent); }
.orb2.success { background: radial-gradient(circle, var(--success), transparent); }

.orb3.warning { background: radial-gradient(circle, var(--warning), transparent); }
.orb3.danger { background: radial-gradient(circle, var(--danger), transparent); }
.orb3.secondary { background: radial-gradient(circle, var(--secondary), transparent); }


/* ---- Light Theme ---- */
/* Add class "theme-light" to body for light gradient background */

body.theme-light {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #1e293b;
    min-height: 100vh;
}

body.theme-light::before,
body.theme-light::after {
    display: none;
}

/* Light theme navigation */
body.theme-light nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    border-bottom: none;
}

body.theme-light .nav-links a {
    color: #334155;
}

body.theme-light .nav-links a:hover {
    color: var(--primary);
}

/* Light theme content card */
body.theme-light .article-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.2);
    margin-top: 100px;
    margin-bottom: 40px;
    padding: 60px 50px;
    max-width: 900px;
}

body.theme-light h1,
body.theme-light h2,
body.theme-light h3 {
    color: #1e293b;
}

body.theme-light .article-content h2 {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.theme-light p,
body.theme-light .article-content {
    color: #334155;
}

body.theme-light .article-meta {
    color: #64748b;
}

body.theme-light .article-badge {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    color: var(--primary);
}

/* Light theme boxes */
body.theme-light .transparency-box,
body.theme-light .disclosure-box {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(139, 92, 246, 0.05));
}

body.theme-light .highlight-box {
    background: rgba(255, 255, 255, 0.8);
}

body.theme-light .highlight-box.context {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(139, 92, 246, 0.05));
}

body.theme-light .stats-section {
    background: rgba(255, 255, 255, 0.5);
    border-color: rgba(99, 102, 241, 0.15);
}

body.theme-light .stat-item {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(99, 102, 241, 0.1);
}

body.theme-light footer {
    background: transparent;
    border-top: none;
    color: rgba(255, 255, 255, 0.8);
}

/* Light theme background orbs (div-based) */
body.theme-light .background-orbs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

body.theme-light .orb {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.3), rgba(99, 102, 241, 0.1));
    filter: blur(60px);
    animation: float 20s infinite ease-in-out;
}

body.theme-light .orb:nth-child(1) {
    width: 500px;
    height: 500px;
    top: -10%;
    left: -10%;
}

body.theme-light .orb:nth-child(2) {
    width: 400px;
    height: 400px;
    top: 50%;
    right: -10%;
    animation-delay: -7s;
}

body.theme-light .orb:nth-child(3) {
    width: 600px;
    height: 600px;
    bottom: -20%;
    left: 30%;
    animation-delay: -14s;
}


/* ==========================================================================
   26. TL;DR SUMMARY BOX
   ========================================================================== */

.tldr-box {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(139, 92, 246, 0.06));
    border: 2px solid rgba(99, 102, 241, 0.4);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md) 30px;
    margin: var(--spacing-md) 0 var(--spacing-lg);
}

.tldr-box h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary);
    font-size: 1.2rem;
    margin-bottom: var(--spacing-sm);
}

.tldr-box h3 svg {
    width: 22px;
    height: 22px;
    stroke: var(--primary);
    fill: none;
}

.tldr-box ul {
    margin: 0;
    padding-left: 20px;
}

.tldr-box li {
    margin-bottom: 8px;
    color: rgba(248, 250, 252, 0.9);
    font-size: 1rem;
}

.tldr-box li strong {
    color: var(--light);
}

/* Warning variant for failure/warning articles */
.tldr-box.warning {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.12), rgba(245, 158, 11, 0.06));
    border-color: rgba(239, 68, 68, 0.4);
}

.tldr-box.warning h3 {
    color: var(--danger);
}

.tldr-box.warning h3 svg {
    stroke: var(--danger);
}


/* ==========================================================================
   27. TABLE OF CONTENTS
   ========================================================================== */

.toc-container {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(139, 92, 246, 0.04));
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md) 30px;
    margin: var(--spacing-lg) 0;
}

.toc-container h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--light);
    font-size: 1.1rem;
    margin-bottom: var(--spacing-sm);
}

.toc-container h3 svg {
    width: 20px;
    height: 20px;
    stroke: var(--primary);
    fill: none;
}

.toc-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 8px 30px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.toc-list li {
    margin: 0;
    padding: 0;
}

.toc-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    color: rgba(248, 250, 252, 0.8);
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.toc-list a:hover {
    background: rgba(99, 102, 241, 0.15);
    color: var(--light);
}

.toc-list .toc-time {
    font-size: 0.8rem;
    color: rgba(248, 250, 252, 0.5);
    white-space: nowrap;
}


/* ==========================================================================
   28. BACK TO TOP BUTTON
   ========================================================================== */

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.5);
}

.back-to-top svg {
    width: 24px;
    height: 24px;
    stroke: white;
    fill: none;
    stroke-width: 2.5;
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }

    .toc-list {
        grid-template-columns: 1fr;
    }
}


/* ==========================================================================
   29. ARTICLE META WITH ICONS
   ========================================================================== */

.article-meta-icons {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: var(--spacing-sm);
    flex-wrap: wrap;
}

.article-meta-icons span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    color: rgba(248, 250, 252, 0.6);
}

.article-meta-icons svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

@media (max-width: 480px) {
    .article-meta-icons {
        flex-direction: column;
        gap: 8px;
    }
}
