/* universal_style.css */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600&family=Outfit:wght@200;400;700&family=JetBrains+Mono:wght@400;700&display=swap');

:root {
    /* -- HEGEMONIC PALETTE -- */
    --bg-deep: #050a14;
    --bg-panel: rgba(20, 30, 48, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);

    --text-primary: #e0e6ed;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    /* Accents */
    --cyan-glow: #00f2ea;
    --cyan-dim: rgba(0, 242, 234, 0.1);
    --crimson-glow: #ff0055;
    --crimson-dim: rgba(255, 0, 85, 0.1);
    --amber-alert: #f59e0b;

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-code: 'JetBrains Mono', monospace;

    /* Spacing & Structure */
    --max-width: 1200px;
    /* Wider for dashboard feel */
    --radius-lg: 16px;
    --radius-sm: 8px;
    --glass-blur: blur(12px);
}

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

body {
    background-color: var(--bg-deep);
    background-image:
        radial-gradient(circle at 10% 20%, rgba(0, 242, 234, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(255, 0, 85, 0.05) 0%, transparent 40%);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    min-height: 100vh;
}

h1,
h2,
h3,
h4,
h5 {
    font-family: var(--font-heading);
    color: white;
    font-weight: 700;
    line-height: 1.2;
}

a {
    color: var(--cyan-glow);
    text-decoration: none;
    transition: 0.3s ease;
}

a:hover {
    text-shadow: 0 0 10px var(--cyan-glow);
}

/* --- HERO SECTION --- */
.hero {
    padding: 6rem 2rem 4rem;
    text-align: center;
    position: relative;
    border-bottom: 1px solid var(--glass-border);
    margin-bottom: 3rem;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--cyan-glow), transparent);
}

.hero h1 {
    font-size: 3.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero .subtitle {
    font-family: var(--font-code);
    color: var(--cyan-glow);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.9rem;
}

/* --- LAYOUT --- */
.layout-container {
    display: flex;
    max-width: var(--max-width);
    margin: 0 auto;
    gap: 3rem;
    padding: 0 1.5rem 4rem;
}

.content {
    flex: 1;
    min-width: 0;
    /* Prevents flex overflow */
}

/* --- SIDEBAR NAVIGATION (Sticky TOC) --- */
.sticky-toc {
    width: 280px;
    position: sticky;
    top: 2rem;
    height: fit-content;
    display: none;
    /* Hidden on mobile */
    background: var(--bg-panel);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

@media (min-width: 1024px) {
    .sticky-toc {
        display: block;
    }
}

.sticky-toc h3 {
    font-family: var(--font-code);
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

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

.sticky-toc a {
    display: block;
    color: var(--text-secondary);
    font-size: 0.9rem;
    padding: 0.5rem 0;
    border-left: 2px solid transparent;
    padding-left: 1rem;
}

.sticky-toc a:hover,
.sticky-toc a.active {
    color: white;
    border-left-color: var(--cyan-glow);
    background: linear-gradient(90deg, var(--cyan-dim), transparent);
}

/* --- CARDS & PANELS --- */
.card {
    background: var(--bg-panel);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
    backdrop-filter: var(--glass-blur);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.2);
}

.card h2,
.card h3,
.card h4 {
    margin-bottom: 1rem;
    color: white;
}

.card h2 {
    font-size: 1.8rem;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 0.75rem;
    margin-bottom: 1.5rem;
}

/* SPECIAL CARD TYPES */
.highlight-card {
    border-left: 4px solid var(--cyan-glow);
    background: linear-gradient(90deg, rgba(0, 242, 234, 0.03), transparent);
}

.alert-card {
    border-left: 4px solid var(--crimson-glow);
    background: linear-gradient(90deg, rgba(255, 0, 85, 0.03), transparent);
}

.alert-card h3 {
    color: var(--crimson-glow);
}

.concept-card {
    border: 1px solid var(--cyan-glow);
    box-shadow: 0 0 20px rgba(0, 242, 234, 0.1);
}

.concept-card h3 {
    font-family: var(--font-code);
    color: var(--cyan-glow);
}

/* --- GRID SYSTEMS --- */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .grid-2 {
        grid-template-columns: 1fr 1fr;
    }
}

/* --- TYPOGRAPHY DETAILS --- */
p {
    margin-bottom: 1.25rem;
    color: var(--text-secondary);
}

strong,
b {
    color: white;
    font-weight: 600;
}

ul,
ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
    color: var(--text-secondary);
}

li {
    margin-bottom: 0.5rem;
}

.note {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-style: italic;
    border-top: 1px dashed var(--glass-border);
    padding-top: 0.75rem;
    margin-top: 1rem;
}

.citation {
    font-size: 0.75rem;
    vertical-align: super;
    color: var(--cyan-glow);
    opacity: 0.8;
}

/* --- DATA TABLES --- */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

th,
td {
    padding: 1rem;
    border-bottom: 1px solid var(--glass-border);
    color: var(--text-secondary);
}

th {
    text-align: left;
    font-family: var(--font-code);
    color: var(--cyan-glow);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

/* --- UTILITIES --- */
.text-cyan {
    color: var(--cyan-glow);
}

.text-crimson {
    color: var(--crimson-glow);
}

.font-mono {
    font-family: var(--font-code);
}

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.2rem;
    }

    .layout-container {
        padding: 0 1rem 2rem;
        gap: 1rem;
    }

    .card {
        padding: 1.5rem;
    }
}