/* ============================================
   AMPERMETRE.COM.TR - DESIGN SYSTEM
   Version: 1.0
   Industrial-Technical Theme
   ============================================ */

/* ===== CSS CUSTOM PROPERTIES ===== */
:root {
    /* Color Palette - Industrial Dark Theme */
    --color-primary-dark: #0a0f1a;
    --color-primary-blue: #1e3a5f;
    --color-accent-electric: #00d4ff;
    --color-accent-warning: #ff6b35;
    --color-accent-success: #00c853;
    --color-accent-info: #7c3aed;
    
    /* Text Colors */
    --color-text-primary: #e8edf5;
    --color-text-secondary: #8a9bb3;
    --color-text-muted: #5a6a7d;
    
    /* Surface Colors */
    --color-surface-dark: #0d1421;
    --color-surface-card: #111827;
    --color-surface-elevated: #1a2332;
    
    /* Border Colors */
    --color-border-subtle: rgba(255,255,255,0.06);
    --color-border-accent: rgba(0,212,255,0.3);
    
    /* Spacing Scale */
    --space-xs: 0.5rem;    /* 8px */
    --space-sm: 1rem;      /* 16px */
    --space-md: 1.5rem;    /* 24px */
    --space-lg: 2.5rem;    /* 40px */
    --space-xl: 4rem;      /* 64px */
    --space-2xl: 6rem;     /* 96px */
    
    /* Typography */
    --font-display: 'DM Sans', system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    
    /* Font Sizes */
    --text-xs: 0.75rem;    /* 12px */
    --text-sm: 0.875rem;   /* 14px */
    --text-base: 1rem;     /* 16px */
    --text-lg: 1.125rem;   /* 18px */
    --text-xl: 1.25rem;    /* 20px */
    --text-2xl: 1.5rem;    /* 24px */
    --text-3xl: 2rem;      /* 32px */
    --text-4xl: 2.5rem;    /* 40px */
    --text-5xl: 3.5rem;    /* 56px */
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-card: 0 4px 24px rgba(0,0,0,0.4);
    --shadow-elevated: 0 8px 32px rgba(0,0,0,0.5);
    --glow-electric: 0 0 30px rgba(0,212,255,0.3);
    --glow-electric-strong: 0 0 40px rgba(0,212,255,0.5);
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;
    
    /* Layout */
    --max-width: 1400px;
    --nav-height: 72px;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-display);
    background: var(--color-primary-dark);
    color: var(--color-text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Background Grid Pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(0,212,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,212,255,0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: -1;
}

::selection {
    background: var(--color-accent-electric);
    color: var(--color-primary-dark);
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(var(--text-2xl), 5vw, var(--text-5xl)); }
h2 { font-size: clamp(var(--text-xl), 4vw, var(--text-3xl)); }
h3 { font-size: var(--text-xl); }
h4 { font-size: var(--text-lg); }

p {
    color: var(--color-text-secondary);
    margin-bottom: var(--space-md);
}

a {
    color: var(--color-accent-electric);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-text-primary);
}

ul, ol {
    padding-left: var(--space-md);
    margin-bottom: var(--space-md);
}

li {
    margin-bottom: var(--space-xs);
    color: var(--color-text-secondary);
}

strong {
    color: var(--color-text-primary);
    font-weight: 600;
}

code {
    font-family: var(--font-mono);
    background: var(--color-surface-elevated);
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    font-size: 0.9em;
}

/* ===== LAYOUT UTILITIES ===== */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.section {
    padding: var(--space-2xl) var(--space-md);
}

.section-dark {
    background: var(--color-surface-dark);
}

/* ===== NAVIGATION ===== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10,15,26,0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border-subtle);
    height: var(--nav-height);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    text-decoration: none;
    color: var(--color-text-primary);
}

.nav-logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--color-accent-electric), var(--color-primary-blue));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: var(--text-lg);
    color: var(--color-primary-dark);
}

.nav-logo-text {
    font-weight: 700;
    font-size: var(--text-lg);
    letter-spacing: -0.02em;
}

.nav-logo-text span {
    color: var(--color-accent-electric);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: var(--text-sm);
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.nav-link:hover {
    color: var(--color-text-primary);
    background: var(--color-surface-elevated);
}

.nav-link.active {
    color: var(--color-accent-electric);
    background: rgba(0,212,255,0.1);
}

/* Dropdown */
.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 280px;
    background: var(--color-surface-card);
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius-lg);
    padding: var(--space-xs);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-base);
    box-shadow: var(--shadow-card);
}

.nav-item:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-link {
    display: block;
    padding: 12px 16px;
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: var(--text-sm);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.nav-dropdown-link:hover {
    color: var(--color-text-primary);
    background: var(--color-surface-elevated);
}

.nav-dropdown-link small {
    display: block;
    color: var(--color-text-muted);
    font-size: var(--text-xs);
    margin-top: 2px;
}

/* Mobile Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--color-text-primary);
    border-radius: 2px;
    transition: all var(--transition-fast);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-family: inherit;
    font-size: var(--text-base);
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-lg);
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-accent-electric), #00b8d4);
    color: var(--color-primary-dark);
    box-shadow: var(--glow-electric);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--glow-electric-strong);
    color: var(--color-primary-dark);
}

.btn-secondary {
    background: var(--color-surface-elevated);
    color: var(--color-text-primary);
    border: 1px solid var(--color-border-subtle);
}

.btn-secondary:hover {
    background: var(--color-surface-card);
    border-color: var(--color-border-accent);
}

.btn-sm {
    padding: 10px 18px;
    font-size: var(--text-sm);
}

/* ===== CARDS ===== */
.card {
    background: var(--color-surface-card);
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius-xl);
    padding: var(--space-lg);
    transition: all var(--transition-base);
}

.card:hover {
    border-color: var(--color-border-accent);
    box-shadow: var(--shadow-card);
}

.card-header {
    margin-bottom: var(--space-md);
}

.card-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(0,212,255,0.15), rgba(0,212,255,0.05));
    border: 1px solid var(--color-border-accent);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-md);
    font-size: var(--text-2xl);
}

/* ===== PILLAR CARDS ===== */
.pillar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-md);
}

.pillar-card {
    position: relative;
    background: var(--color-surface-card);
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius-xl);
    padding: var(--space-lg);
    text-decoration: none;
    color: inherit;
    transition: all var(--transition-base);
    overflow: hidden;
}

.pillar-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-accent-electric), transparent);
    opacity: 0;
    transition: opacity var(--transition-base);
}

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

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

.pillar-number {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    margin-bottom: 8px;
}

.pillar-title {
    font-size: var(--text-xl);
    font-weight: 600;
    margin-bottom: 8px;
    transition: color var(--transition-fast);
}

.pillar-card:hover .pillar-title {
    color: var(--color-accent-electric);
}

.pillar-description {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    line-height: 1.6;
}

.pillar-meta {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid var(--color-border-subtle);
}

.pillar-tag {
    font-size: var(--text-xs);
    padding: 4px 10px;
    background: var(--color-surface-elevated);
    border-radius: var(--radius-full);
    color: var(--color-text-muted);
}

/* ===== TABLES ===== */
.table-wrapper {
    background: var(--color-surface-card);
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius-xl);
    overflow: hidden;
    margin-bottom: var(--space-md);
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: var(--space-md);
    text-align: left;
    border-bottom: 1px solid var(--color-border-subtle);
}

.table th {
    background: var(--color-surface-elevated);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.table td {
    font-size: var(--text-sm);
}

.table tr:last-child td {
    border-bottom: none;
}

.table tr:hover td {
    background: var(--color-surface-elevated);
}

.table-check { color: var(--color-accent-success); }
.table-cross { color: var(--color-accent-warning); }

/* ===== INFO BOXES ===== */
.info-box {
    background: var(--color-surface-card);
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    margin-bottom: var(--space-md);
}

.info-box.tip {
    border-left: 3px solid var(--color-accent-success);
}

.info-box.warning {
    border-left: 3px solid var(--color-accent-warning);
    background: rgba(255,107,53,0.05);
}

.info-box.note {
    border-left: 3px solid var(--color-accent-electric);
}

.info-box-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: var(--text-sm);
}

.info-box.tip .info-box-header { color: var(--color-accent-success); }
.info-box.warning .info-box-header { color: var(--color-accent-warning); }
.info-box.note .info-box-header { color: var(--color-accent-electric); }

.info-box p {
    margin: 0;
    font-size: var(--text-sm);
}

/* ===== FAQ ACCORDION ===== */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--color-surface-card);
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-sm);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: var(--space-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: none;
    border: none;
    color: var(--color-text-primary);
    font-family: inherit;
    font-size: var(--text-base);
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.faq-question:hover {
    background: var(--color-surface-elevated);
}

.faq-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent-electric);
    transition: transform var(--transition-base);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-base);
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer-content {
    padding: 0 var(--space-md) var(--space-md);
    color: var(--color-text-secondary);
    font-size: var(--text-sm);
    line-height: 1.7;
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin-bottom: var(--space-md);
    flex-wrap: wrap;
}

.breadcrumb a {
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.breadcrumb a:hover {
    color: var(--color-accent-electric);
}

.breadcrumb-separator {
    opacity: 0.5;
}

.breadcrumb-current {
    color: var(--color-text-secondary);
}

/* ===== ARTICLE LAYOUT ===== */
.article-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: calc(var(--nav-height) + var(--space-xl)) var(--space-md) var(--space-2xl);
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: var(--space-xl);
}

.article-header {
    margin-bottom: var(--space-xl);
}

.article-category {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(0,212,255,0.1);
    border: 1px solid var(--color-border-accent);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--color-accent-electric);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-md);
}

.article-title {
    font-size: clamp(var(--text-2xl), 4vw, var(--text-4xl));
    margin-bottom: var(--space-sm);
}

.article-intro {
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
    max-width: 700px;
}

/* Quick Summary Box */
.quick-summary {
    background: linear-gradient(135deg, var(--color-primary-blue), var(--color-surface-card));
    border: 1px solid var(--color-border-accent);
    border-radius: var(--radius-xl);
    padding: var(--space-lg);
    margin-bottom: var(--space-xl);
    position: relative;
    overflow: hidden;
}

.quick-summary::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(0,212,255,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.quick-summary-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: var(--space-md);
}

.quick-summary-icon {
    width: 36px;
    height: 36px;
    background: var(--color-accent-electric);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-lg);
}

.quick-summary-title {
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-accent-electric);
}

.quick-summary-list {
    list-style: none;
    padding: 0;
    position: relative;
    z-index: 1;
}

.quick-summary-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
}

.quick-summary-list li:last-child {
    border-bottom: none;
}

.quick-summary-list li::before {
    content: '→';
    color: var(--color-accent-electric);
    font-weight: 600;
    flex-shrink: 0;
}

/* Content Sections */
.content-section {
    margin-bottom: var(--space-xl);
    scroll-margin-top: 100px;
}

.content-section h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--color-border-subtle);
}

.section-icon {
    width: 32px;
    height: 32px;
    background: var(--color-surface-elevated);
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-base);
}

/* Sidebar */
.sidebar {
    position: sticky;
    top: calc(var(--nav-height) + var(--space-md));
    height: fit-content;
}

.toc-card {
    background: var(--color-surface-card);
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius-xl);
    padding: var(--space-md);
    margin-bottom: var(--space-md);
}

.toc-title {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-sm);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--color-border-subtle);
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-list li {
    margin-bottom: 4px;
}

.toc-link {
    display: block;
    padding: 8px 12px;
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.toc-link:hover {
    color: var(--color-text-primary);
    background: var(--color-surface-elevated);
}

.toc-link.active {
    color: var(--color-accent-electric);
    background: rgba(0,212,255,0.1);
}

/* Sidebar CTA */
.sidebar-cta {
    background: linear-gradient(135deg, var(--color-primary-blue), var(--color-surface-card));
    border: 1px solid var(--color-border-accent);
    border-radius: var(--radius-xl);
    padding: var(--space-md);
    text-align: center;
}

.sidebar-cta-icon {
    width: 48px;
    height: 48px;
    background: var(--color-accent-electric);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-xl);
    margin: 0 auto var(--space-sm);
}

.sidebar-cta h4 {
    font-size: var(--text-base);
    margin-bottom: 8px;
}

.sidebar-cta p {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin-bottom: var(--space-md);
}

/* Related Pages */
.related-section {
    margin-top: var(--space-xl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--color-border-subtle);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
}

.related-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: var(--space-md);
    background: var(--color-surface-card);
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: inherit;
    transition: all var(--transition-fast);
}

.related-card:hover {
    border-color: var(--color-border-accent);
    transform: translateX(4px);
}

.related-card-icon {
    width: 40px;
    height: 40px;
    background: var(--color-surface-elevated);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-lg);
    flex-shrink: 0;
}

.related-card h4 {
    font-size: var(--text-sm);
    font-weight: 600;
    margin-bottom: 2px;
}

.related-card p {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    margin: 0;
}

/* Standard Note */
.standard-note {
    background: var(--color-surface-dark);
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    margin-top: var(--space-xl);
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

.standard-note strong {
    color: var(--color-text-secondary);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--color-surface-dark);
    border-top: 1px solid var(--color-border-subtle);
    padding: var(--space-2xl) var(--space-md) var(--space-lg);
}

.footer-grid {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.footer-brand {
    max-width: 300px;
}

.footer-description {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    line-height: 1.7;
}

.footer-column h4 {
    font-size: var(--text-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-md);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: var(--space-xs);
}

.footer-links a {
    color: var(--color-text-muted);
    font-size: var(--text-sm);
}

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

.footer-bottom {
    max-width: var(--max-width);
    margin: 0 auto;
    padding-top: var(--space-lg);
    border-top: 1px solid var(--color-border-subtle);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.footer-copy {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

.footer-legal {
    display: flex;
    gap: var(--space-md);
}

.footer-legal a {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

@keyframes drawLine {
    to { stroke-dashoffset: 0; }
}

.animate-fade-up {
    animation: fadeInUp 0.8s ease forwards;
}

.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .article-container {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--color-surface-card);
        border-bottom: 1px solid var(--color-border-subtle);
        padding: var(--space-sm);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: transparent;
        border: none;
        box-shadow: none;
        padding-left: var(--space-md);
    }
    
    .sidebar {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .pillar-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    :root {
        --space-md: 1rem;
        --space-lg: 1.5rem;
        --space-xl: 2.5rem;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .nav,
    .sidebar,
    .footer {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .article-container {
        grid-template-columns: 1fr;
        padding: 0;
    }
}
