/* ==========================================================================
   DarkWiki.ink - Main Stylesheet
   Theme: Deep Web Noir
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* ==========================================================================
   CSS Variables
   ========================================================================== */
:root {
    /* Primary Colors */
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-tertiary: #1a1a25;
    --bg-card: #1e1e2a;

    /* Accent Colors */
    --accent-red: #ff2d55;
    --accent-purple: #bf5af2;
    --accent-indigo: #5e5ce6;
    --accent-blue: #0a84ff;

    /* Text Colors */
    --text-primary: #e5e5e7;
    --text-secondary: #8e8e93;
    --text-muted: #636366;

    /* Status Colors */
    --success: #30d158;
    --warning: #ff9f0a;
    --danger: #ff453a;
    --info: #64d2ff;

    /* Effects */
    --glow-red: 0 0 20px rgba(255, 45, 85, 0.4);
    --glow-purple: 0 0 20px rgba(191, 90, 242, 0.4);
    --glow-indigo: 0 0 20px rgba(94, 92, 230, 0.4);

    /* Gradients */
    --gradient-dark: linear-gradient(180deg, #0a0a0f 0%, #12121a 100%);
    --gradient-card: linear-gradient(135deg, rgba(191,90,242,0.1) 0%, rgba(0,0,0,0.4) 100%);
    --gradient-danger: linear-gradient(135deg, rgba(255,45,85,0.1) 0%, rgba(0,0,0,0.4) 100%);

    /* Typography */
    --font-heading: "Space Grotesk", sans-serif;
    --font-body: "Inter", sans-serif;
    --font-mono: "JetBrains Mono", monospace;

    /* Spacing */
    --container-width: 1200px;
    --section-padding: 80px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

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

a:hover {
    color: var(--accent-purple);
}

img {
    max-width: 100%;
    height: auto;
}

/* ==========================================================================
   Typography
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

/* ==========================================================================
   Layout
   ========================================================================== */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: var(--section-padding) 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    color: var(--text-primary);
    margin-bottom: 15px;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 8px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-indigo));
    color: #fff;
    box-shadow: var(--glow-purple);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(191, 90, 242, 0.6);
    color: #fff;
}

.btn-secondary {
    background: rgba(255,255,255,0.05);
    color: var(--text-primary);
    border: 1px solid rgba(255,255,255,0.1);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--accent-purple);
    color: var(--text-primary);
}

.btn-danger {
    background: linear-gradient(135deg, var(--accent-red), #c41e3a);
    color: #fff;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-primary);
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-red));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

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

.nav-link {
    padding: 10px 16px;
    color: var(--text-secondary);
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
    background: rgba(255,255,255,0.05);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: blob-float 20s ease-in-out infinite;
}

.blob-purple {
    background: var(--accent-purple);
    width: 400px;
    height: 400px;
    top: 10%;
    right: 10%;
}

.blob-red {
    background: var(--accent-red);
    width: 300px;
    height: 300px;
    bottom: 20%;
    left: 10%;
    animation-delay: -5s;
}

@keyframes blob-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(50px, -50px) scale(1.1); }
    50% { transform: translate(-30px, 30px) scale(0.9); }
    75% { transform: translate(-50px, -20px) scale(1.05); }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px;
    background: rgba(191, 90, 242, 0.1);
    border: 1px solid rgba(191, 90, 242, 0.3);
    border-radius: 30px;
    color: var(--accent-purple);
    font-size: 0.9rem;
    margin-bottom: 30px;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    margin-bottom: 25px;
    line-height: 1.1;
}

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

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

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

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-purple);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ==========================================================================
   Glitch Effect
   ========================================================================== */
.glitch {
    position: relative;
    animation: glitch-skew 4s infinite linear alternate-reverse;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
}

.glitch::before {
    animation: glitch-effect 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) both infinite;
    color: var(--accent-red);
    clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
    transform: translate(-2px, -2px);
}

.glitch::after {
    animation: glitch-effect 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) reverse both infinite;
    color: var(--accent-indigo);
    clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
    transform: translate(2px, 2px);
}

@keyframes glitch-effect {
    0% { transform: translate(0); }
    20% { transform: translate(-3px, 3px); }
    40% { transform: translate(-3px, -3px); }
    60% { transform: translate(3px, 3px); }
    80% { transform: translate(3px, -3px); }
    100% { transform: translate(0); }
}

@keyframes glitch-skew {
    0% { transform: skew(0deg); }
    10% { transform: skew(-0.5deg); }
    20% { transform: skew(0.5deg); }
    30% { transform: skew(0deg); }
    100% { transform: skew(0deg); }
}

/* ==========================================================================
   Cards
   ========================================================================== */
.card {
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 16px;
    padding: 30px;
    transition: all 0.3s ease;
}

.card:hover {
    border-color: rgba(191, 90, 242, 0.3);
    transform: translateY(-5px);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(191,90,242,0.2), rgba(94,92,230,0.2));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent-purple);
    margin-bottom: 20px;
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.card-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Categories Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.category-card {
    display: block;
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 16px;
    padding: 30px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.category-card:hover {
    border-color: var(--accent-purple);
    transform: translateY(-5px);
    box-shadow: var(--glow-purple);
}

.category-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(191,90,242,0.2), rgba(94,92,230,0.2));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent-purple);
    margin-bottom: 20px;
}

.category-card h3 {
    color: var(--text-primary);
    margin-bottom: 10px;
}

.category-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.article-count {
    display: inline-block;
    padding: 5px 12px;
    background: rgba(191,90,242,0.1);
    color: var(--accent-purple);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* ==========================================================================
   Terminal Component
   ========================================================================== */
.terminal {
    background: #0d0d0d;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
    font-family: var(--font-mono);
}

.terminal-header {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: #1a1a1a;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.terminal-buttons {
    display: flex;
    gap: 8px;
}

.terminal-buttons span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.terminal-buttons span:nth-child(1) { background: #ff5f56; }
.terminal-buttons span:nth-child(2) { background: #ffbd2e; }
.terminal-buttons span:nth-child(3) { background: #27ca40; }

.terminal-title {
    margin-left: auto;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.terminal-body {
    padding: 20px;
    font-size: 0.9rem;
    line-height: 1.8;
}

.terminal-line {
    margin-bottom: 5px;
}

.prompt {
    color: var(--accent-purple);
    margin-right: 10px;
}

.command {
    color: var(--text-primary);
}

.terminal-output {
    color: var(--text-secondary);
    padding-left: 20px;
}

/* ==========================================================================
   Classified Box
   ========================================================================== */
.classified-box {
    background: var(--gradient-danger);
    border: 1px solid rgba(255,45,85,0.3);
    border-radius: 12px;
    padding: 25px;
    position: relative;
    overflow: hidden;
}

.classified-box::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-red), var(--accent-purple));
}

.classified-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.stamp {
    font-family: var(--font-mono);
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.75rem;
}

.stamp-old {
    background: rgba(255,45,85,0.2);
    color: var(--accent-red);
    text-decoration: line-through;
    opacity: 0.6;
}

.stamp-new {
    background: rgba(48,209,88,0.2);
    color: var(--success);
}

/* ==========================================================================
   Threat Level
   ========================================================================== */
.threat-level {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: rgba(0,0,0,0.3);
    border-radius: 8px;
    border-left: 4px solid;
}

.threat-level[data-level="low"] { border-color: var(--success); }
.threat-level[data-level="medium"] { border-color: var(--warning); }
.threat-level[data-level="high"] { border-color: #ff6b35; }
.threat-level[data-level="critical"] { border-color: var(--danger); }

.threat-bar {
    width: 100px;
    height: 8px;
    background: #1a1a1a;
    border-radius: 4px;
    overflow: hidden;
}

.threat-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease;
}

[data-level="low"] .threat-fill { width: 25%; background: var(--success); }
[data-level="medium"] .threat-fill { width: 50%; background: var(--warning); }
[data-level="high"] .threat-fill { width: 75%; background: #ff6b35; }
[data-level="critical"] .threat-fill { width: 100%; background: var(--danger); animation: pulse-danger 1s infinite; }

@keyframes pulse-danger {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.threat-label {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
}

/* ==========================================================================
   Timeline
   ========================================================================== */
.timeline {
    position: relative;
    padding-left: 40px;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--accent-purple), var(--accent-red));
}

.timeline-item {
    position: relative;
    padding-bottom: 40px;
}

.timeline-marker {
    position: absolute;
    left: -33px;
    width: 16px;
    height: 16px;
    background: var(--accent-purple);
    border-radius: 50%;
    border: 3px solid var(--bg-primary);
    box-shadow: var(--glow-purple);
}

.timeline-content {
    background: var(--bg-card);
    border: 1px solid rgba(191,90,242,0.2);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
}

.timeline-content:hover {
    border-color: var(--accent-purple);
    transform: translateX(5px);
}

.timeline-date {
    color: var(--accent-purple);
    font-family: var(--font-mono);
    font-size: 0.85rem;
}

/* ==========================================================================
   Onion Box
   ========================================================================== */
.onion-box {
    background: rgba(94,92,230,0.1);
    border: 1px solid rgba(94,92,230,0.3);
    border-radius: 10px;
    padding: 20px;
    font-family: var(--font-mono);
}

.onion-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: var(--accent-indigo);
}

.status {
    margin-left: auto;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
}

.status-offline {
    background: rgba(255,69,58,0.2);
    color: var(--danger);
}

.status-online {
    background: rgba(48,209,88,0.2);
    color: var(--success);
}

.onion-address {
    display: block;
    background: #0a0a0f;
    padding: 15px;
    border-radius: 8px;
    color: var(--accent-indigo);
    font-size: 1rem;
    word-break: break-all;
    margin-bottom: 10px;
}

.onion-note {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-family: var(--font-body);
}

/* ==========================================================================
   Featured Section
   ========================================================================== */
.featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 250px);
    gap: 25px;
}

.featured-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.05);
}

.featured-large {
    grid-column: span 2;
    grid-row: span 2;
}

.card-image {
    position: absolute;
    inset: 0;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
}

.card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.9) 100%);
}

.featured-card .card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 25px;
}

.card-category {
    display: inline-block;
    padding: 5px 12px;
    background: var(--accent-purple);
    color: #fff;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.featured-card h3 {
    color: #fff;
    margin-bottom: 10px;
}

.featured-card p {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.card-link {
    color: var(--accent-purple);
    font-weight: 600;
    transition: color 0.3s ease;
}

.card-link:hover {
    color: #fff;
}

/* ==========================================================================
   Stats Section
   ========================================================================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
}

.stat-icon {
    font-size: 2rem;
    color: var(--accent-purple);
    margin-bottom: 15px;
}

.stat-value {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.stat-card .stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.stat-source {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ==========================================================================
   Disclaimer
   ========================================================================== */
.disclaimer-section {
    padding: 40px 0;
}

.disclaimer-box {
    display: flex;
    gap: 20px;
    padding: 25px;
    background: rgba(255,159,10,0.1);
    border: 1px solid rgba(255,159,10,0.3);
    border-radius: 12px;
}

.disclaimer-icon {
    font-size: 2rem;
    color: var(--warning);
    flex-shrink: 0;
}

.disclaimer-content h3 {
    color: var(--warning);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.disclaimer-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 15px;
    max-width: 300px;
}

.footer-title {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.05);
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin: 0;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--accent-purple);
    color: #fff;
}

/* ==========================================================================
   Article Page Styles
   ========================================================================== */
.article-hero {
    padding: 120px 0 60px;
    background: var(--gradient-dark);
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.article-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 20px;
}

.article-content h2 {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.article-content p {
    font-size: 1.1rem;
    line-height: 1.8;
}

.article-content ul, .article-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.article-content li {
    margin-bottom: 10px;
    color: var(--text-secondary);
}

/* ==========================================================================
   Table of Contents
   ========================================================================== */
.toc {
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 25px;
    margin: 30px 0;
}

.toc-title {
    font-size: 1rem;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.toc-list {
    list-style: none;
    counter-reset: toc;
}

.toc-list li {
    counter-increment: toc;
    margin-bottom: 10px;
}

.toc-list li::before {
    content: counter(toc) ". ";
    color: var(--accent-purple);
    font-weight: 600;
}

.toc-list a {
    color: var(--text-secondary);
}

.toc-list a:hover {
    color: var(--accent-purple);
}

/* ==========================================================================
   Info Boxes
   ========================================================================== */
.info-box {
    padding: 20px;
    border-radius: 10px;
    margin: 25px 0;
}

.info-box.tip {
    background: rgba(48,209,88,0.1);
    border-left: 4px solid var(--success);
}

.info-box.warning {
    background: rgba(255,159,10,0.1);
    border-left: 4px solid var(--warning);
}

.info-box.danger {
    background: rgba(255,69,58,0.1);
    border-left: 4px solid var(--danger);
}

.info-box.info {
    background: rgba(100,210,255,0.1);
    border-left: 4px solid var(--info);
}

/* ==========================================================================
   Breadcrumb
   ========================================================================== */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: var(--text-muted);
}

.breadcrumb span {
    color: var(--text-muted);
}

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

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
    .featured-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }
    
    .featured-large {
        grid-column: span 2;
        grid-row: span 1;
        min-height: 350px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 50px;
    }
    
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-secondary);
        flex-direction: column;
        padding: 20px;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }
    
    .nav.active {
        display: flex;
    }
    
    .mobile-toggle {
        display: block;
    }
    
    .hero-stats {
        gap: 30px;
    }
    
    .featured-grid {
        grid-template-columns: 1fr;
    }
    
    .featured-large {
        grid-column: span 1;
        min-height: 300px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .disclaimer-box {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }
}

/* ==========================================================================
   Scanlines Effect (optional)
   ========================================================================== */
.scanlines::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.1),
        rgba(0, 0, 0, 0.1) 1px,
        transparent 1px,
        transparent 2px
    );
    pointer-events: none;
    z-index: 9999;
    opacity: 0.3;
}

/* ==========================================================================
   Noise Overlay
   ========================================================================== */
.noise-overlay::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.02;
    pointer-events: none;
    z-index: 9998;
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }
.hidden { display: none; }
.visible { display: block; }
