/* --- LIGHT NEON TECH VARIABLES --- */
:root {
    --bg-page: #ffffff;
    --bg-card: #ffffff;
    --text-main: #0f172a;
    --text-body: #475569;
    --neon-cyan: #06b6d4;
    --neon-cyan-glow: rgba(6, 182, 212, 0.5);
    --neon-purple: #8b5cf6;
    --neon-purple-glow: rgba(139, 92, 246, 0.5);
    --neon-pink: #ec4899;
    --neon-pink-glow: rgba(236, 72, 153, 0.4);
    --dark-surface: #0f172a;
    --dark-border: #1e293b;
    --border-light: #e2e8f0;
    --smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* --- RESET & TYPOGRAPHY --- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-page);
    color: var(--text-body);
    line-height: 1.7;
    position: relative;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    font-weight: 700;
}

.mt-4 { margin-top: 2rem; }

/* --- AMBIENT BLOBS --- */
.ambient-blob {
    position: fixed;
    width: 600px; height: 600px;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.15;
    animation: float 12s infinite alternate ease-in-out;
}
.blob-cyan { top: -200px; right: -100px; background: var(--neon-cyan); }
.blob-purple { bottom: -100px; left: -200px; background: var(--neon-purple); animation-delay: -4s; }

@keyframes float {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(50px) scale(1.05); }
}

/* --- TOP NAVIGATION (COOLER GLASS + NEON) --- */
.top-nav {
    position: sticky;
    top: 0; width: 100%;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(6, 182, 212, 0.15);
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    z-index: 100;
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.1rem 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

/* Brand */
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Outfit', sans-serif;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-main);
    text-decoration: none;
    transition: var(--smooth);
}

.brand:hover .brand-dot {
    animation: pulse 1.5s infinite;
}

.brand-dot {
    width: 12px; height: 12px;
    background: var(--neon-cyan);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--neon-cyan), 0 0 24px var(--neon-cyan-glow);
    transition: var(--smooth);
}

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

/* Nav Menu */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 2.25rem;
}

.nav-link {
    color: var(--text-body);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    transition: var(--smooth);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, var(--neon-cyan), var(--neon-purple));
    transition: width 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--neon-cyan);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

/* Neon Action Buttons */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-neon {
    padding: 0.55rem 1.4rem;
    border-radius: 9999px;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.btn-github {
    border: 2px solid var(--neon-cyan);
    color: var(--neon-cyan);
    background: transparent;
    text-decoration: none;
}

.btn-github:hover {
    background: var(--neon-cyan);
    color: white;
    box-shadow: 0 0 25px 8px var(--neon-cyan-glow);
    transform: translateY(-2px);
    text-decoration: none;
}

.btn-arxiv {
    border: 2px solid var(--neon-purple);
    color: var(--neon-purple);
    background: transparent;
    text-decoration: none;
}

.btn-arxiv:hover {
    background: var(--neon-purple);
    color: white;
    box-shadow: 0 0 25px 8px var(--neon-purple-glow);
    transform: translateY(-2px);
    text-decoration: none;
}

/* --- PAGE LAYOUT --- */
.page-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 5rem 2rem;
}

.hero { margin-bottom: 4rem; }
.page-header { margin-bottom: 3rem; border-bottom: 2px solid var(--text-main); padding-bottom: 1.5rem; }
.page-header h1 { font-size: 2.5rem; margin-bottom: 0.5rem; }

.tech-badge {
    display: inline-block;
    padding: 0.25rem 1rem;
    background: var(--neon-cyan-glow);
    color: #0891b2;
    border: 1px solid var(--neon-cyan);
    border-radius: 20px;
    font-size: 0.8rem; font-weight: 700; font-family: 'Outfit', sans-serif;
    margin-bottom: 1rem;
}
.tech-badge.purple { background: var(--neon-purple-glow); color: #7c3aed; border-color: var(--neon-purple); }

.hero-title { font-size: 3.5rem; letter-spacing: -1px; line-height: 1.1; margin-bottom: 1.5rem; }
.hero-desc { font-size: 1.25rem; color: var(--text-body); }

/* --- CARDS & SECTIONS --- */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    margin-bottom: 2rem;
    transition: var(--smooth);
}

.card:hover {
    border-color: var(--neon-cyan);
    box-shadow: 0 15px 35px var(--neon-cyan-glow);
}

.text-neon { color: var(--neon-cyan); font-weight: 600; text-decoration: none; }
.text-neon:hover { text-decoration: underline; }

/* Grid for Guidelines */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 2rem;}
.grid-2 .card { padding: 1.5rem; margin-bottom: 0; }
.card-title { font-size: 1.25rem; margin-bottom: 0.75rem; }

/* Neon Hover Effects on White Cards */
.neon-hover-purple:hover { border-color: var(--neon-purple); box-shadow: 0 10px 30px var(--neon-purple-glow); transform: translateY(-3px); }
.neon-hover-cyan:hover { border-color: var(--neon-cyan); box-shadow: 0 10px 30px var(--neon-cyan-glow); transform: translateY(-3px); }
.neon-hover-pink:hover { border-color: var(--neon-pink); box-shadow: 0 10px 30px var(--neon-pink-glow); transform: translateY(-3px); }

/* --- COMPONENTS (Tables, Terminal, Media) --- */
.media-placeholder {
    width: 100%; height: 300px;
    background: var(--dark-surface);
    border-radius: 12px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    color: #fff; font-family: monospace; font-size: 0.9rem;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.15);
    transition: var(--smooth);
}
.media-placeholder:hover { box-shadow: 0 15px 35px var(--neon-cyan-glow); border: 1px solid var(--neon-cyan); }
.play-icon { width: 50px; height: 50px; border: 2px solid var(--neon-cyan); border-radius: 50%; margin-bottom: 1rem; display: flex; justify-content: center; align-items: center; }
.play-icon::after { content: ''; border-top: 8px solid transparent; border-bottom: 8px solid transparent; border-left: 12px solid var(--neon-cyan); margin-left: 4px; }

/* Table */
.table-container { overflow-x: auto; border: 1px solid var(--border-light); border-radius: 12px; }
.tech-table { width: 100%; border-collapse: collapse; text-align: left; }
.tech-table th { background: #f8fafc; font-family: 'Outfit'; font-weight: 600; padding: 1rem; border-bottom: 1px solid var(--border-light); }
.tech-table td { padding: 1rem; border-bottom: 1px solid var(--border-light); color: var(--text-main); }
.tech-table tr:hover td { background: #f1f5f9; }

/* Dark Terminal Box */
.terminal-box {
    background: var(--dark-surface);
    border-radius: 12px; overflow: hidden;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}
.terminal-header {
    background: var(--dark-border); padding: 0.75rem 1rem;
    display: flex; align-items: center; gap: 1rem;
    font-family: monospace; font-size: 0.85rem; color: #94a3b8;
}
.dots { display: flex; gap: 6px; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.red { background: #ef4444; } .dot.yellow { background: #f59e0b; } .dot.green { background: #10b981; }
.terminal-body { padding: 1.5rem; font-family: monospace; font-size: 0.9rem; color: #e2e8f0; line-height: 1.7; }
.log-info { color: #2dd4bf; text-shadow: 0 0 5px rgba(45, 212, 191, 0.5); }

/* --- ALERTS & TEMPLATES --- */
.alert-box {
    position: relative; padding: 1.5rem 1.5rem 1.5rem 2.5rem;
    border-radius: 12px; background: #fff1f2; border: 1px solid #fecdd3;
    color: #be123c; overflow: hidden;
}
.alert-accent { position: absolute; top: 0; left: 0; width: 6px; height: 100%; background: #e11d48; }

.template-block { margin-bottom: 3rem; }
.template-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.template-header h2 { margin: 0; font-size: 1.5rem; }

/* Dark Code blocks for templates */
pre {
    background: var(--dark-surface); padding: 1.5rem;
    border-radius: 12px; overflow-x: auto;
    font-family: monospace; font-size: 0.9rem; color: #cbd5e1;
    border-left: 4px solid var(--neon-cyan);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .nav-content { flex-wrap: wrap; gap: 1rem; padding: 1rem 1.5rem; }
    .nav-menu { order: 3; width: 100%; justify-content: center; gap: 1.5rem; }
    .nav-actions { order: 2; }
    .grid-2 { grid-template-columns: 1fr; }
    .hero-title { font-size: 2.5rem; }
}

/* --- NEW UTILITY CLASSES --- */

/* Layout & Spacing */
.mb-4 { margin-bottom: 4rem; }
.flex-wrap-gap { display: flex; gap: 15px; flex-wrap: wrap; }
.text-center { text-align: center; }
.mt-large { margin-top: 4rem; }

/* Media & Hero Wrappers */
.hero-image-wrapper {
    margin-bottom: 4rem;
}

.media-placeholder.hero-size {
    height: 450px;
    border-color: var(--neon-cyan);
    box-shadow: 0 15px 0px var(--neon-cyan-glow);
}

.media-placeholder.video-size {
    height: 220px;
}

.media-placeholder.gallery-size {
    height: 180px;
}

.media-placeholder.purple-border {
    border-color: var(--neon-purple);
}

.media-placeholder .icon-large {
    font-size: 3rem;
    margin-bottom: 15px;
}

.media-placeholder .icon-med {
    font-size: 2rem;
    margin-bottom: 10px;
}

.media-placeholder .label-hero {
    font-size: 1rem;
    color: var(--neon-cyan);
    letter-spacing: 2px;
    font-weight: 600;
}

.media-placeholder .label-small {
    font-size: 0.75rem;
}

.play-icon.purple-border {
    border-color: var(--neon-purple);
}

.play-icon.purple-border::after {
    border-left-color: var(--neon-purple);
}

/* Credits Section */
.card-credits {
    background: var(--bg-page);
    border: 1px dashed var(--border-light);
    margin-top: 4rem;
}

.card-credits h2 {
    font-size: 1.25rem;
}

.credits-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.credits-col h3 {
    font-size: 1rem;
    color: var(--text-main);
}

.credits-list {
    font-size: 0.85rem;
    list-style: none;
    padding: 0;
}

.credits-list li {
    margin-bottom: 0.75rem;
}

.credits-text {
    font-size: 0.9rem;
    line-height: 1.6;
}

.text-underline {
    text-decoration: underline;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

/* Call to Action Button */
.btn-cta {
    display: inline-block;
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
    background: var(--text-main);
    color: var(--bg-page);
    text-decoration: none;
}

/* --- TUTORIAL SPECIFIC CLASSES --- */

/* Flexible Grids without inline styles */
.grid-stack-mobile {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.card-no-margin {
    margin: 0;
}

.card-accent-purple {
    border-left: 4px solid var(--neon-purple);
}

/* Status & Info Boxes */
.info-badge-block {
    margin-top: 1rem;
    padding: 0.5rem;
    background: #f8fafc;
    border-radius: 8px;
    font-size: 0.85rem;
    text-align: center;
}

.alert-success {
    background: #f0fdf4;
    border-color: #bbf7d0;
    color: #15803d;
}

.troubleshoot-box {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--dark-surface);
    border-radius: 12px;
    border: 1px solid #e11d48;
}

.troubleshoot-box h4 {
    color: #fb7185;
    margin-top: 0;
}

.troubleshoot-text {
    font-size: 0.9rem;
    color: #fda4af;
}

/* Typography Utilities */
.text-cyan { color: var(--neon-cyan); }
.text-purple { color: var(--neon-purple); }
.font-small { font-size: 0.9rem; }
.font-med { font-size: 1.1rem; }

/* --- DIAGNOSTIC & TROUBLESHOOTING UTILITIES --- */

.tech-badge-pink { 
    background: var(--neon-pink-glow); 
    color: #be123c; 
    border-color: var(--neon-pink); 
}

.diag-header {
    margin-bottom: 1rem; 
    border-bottom: 1px solid var(--border-light); 
    padding-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.diag-icon { margin-right: 8px; }

.table-small { font-size: 0.85rem; }

.code-pink { color: var(--neon-pink); font-weight: 600; }
.code-cyan { color: var(--neon-cyan); font-weight: 600; }

.divider-large {
    border: 0; 
    border-top: 1px solid var(--border-light); 
    margin: 4rem 0;
}

.flex-between {
    display: flex; 
    justify-content: space-between; 
    align-items: center;
}

.cause-title { font-size: 1.1rem; color: #be123c; }
.symptom-title { font-size: 1.1rem; color: #b45309; }

.border-top-light {
    border-top: 1px solid var(--border-light); 
    padding-top: 1.5rem;
}

/* Status Cards for Checklists */
.status-card-green {
    background: #f0fdf4; 
    padding: 1.25rem; 
    border-radius: 8px; 
    border: 1px solid #bbf7d0;
}

.status-card-blue {
    background: #eff6ff; 
    padding: 1.25rem; 
    border-radius: 8px; 
    border: 1px solid #bfdbfe;
}

.status-title-green { color: #15803d; margin-bottom: 0.5rem; }
.status-title-blue { color: #1d4ed8; margin-bottom: 0.5rem; }

.status-list {
    padding-left: 1.25rem; 
    font-size: 0.9rem; 
    margin: 0;
}

.status-list-green { color: #166534; }
.status-list-blue { color: #1e40af; }


/* --- COMPONENTS & BOM UTILITIES --- */

.arch-card {
    padding: 1.5rem; 
    margin-bottom: 0;
}

.arch-card h3 {
    font-size: 1.15rem; 
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.arch-card p {
    font-size: 0.9rem; 
    margin: 0;
}

.bom-header-flex {
    display: flex; 
    justify-content: space-between; 
    align-items: flex-end; 
    margin-bottom: 1.5rem; 
    flex-wrap: wrap; 
    gap: 1rem;
}

.price-tag-container {
    text-align: right;
}

.price-amount {
    font-family: 'Outfit', sans-serif; 
    font-size: 2rem; 
    font-weight: 800; 
    color: var(--text-main); 
    line-height: 1;
}

.media-placeholder.schematic {
    height: 180px; 
    border-color: var(--border-light); 
    background: #f8fafc;
}

.text-right { text-align: right; }
.text-center { text-align: center; }
.font-mono { font-family: monospace; }

/* --- BUILD GUIDE & ALERT UTILITIES --- */

/* Alert System */
.alert-box {
    position: relative; 
    padding: 1.25rem 1.5rem 1.25rem 2.5rem; 
    border-radius: 12px; 
    overflow: hidden; 
    margin-bottom: 2rem;
    border: 1px solid;
}

.alert-accent-line {
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 6px; 
    height: 100%;
}

/* Alert Variants */
.alert-caution { background: #fffbeb; border-color: #fde68a; color: #b45309; }
.alert-caution .alert-accent-line { background: #f59e0b; }

.alert-note { background: #eff6ff; border-color: #bfdbfe; color: #1d4ed8; }
.alert-note .alert-accent-line { background: #3b82f6; }

.alert-tip { background: #f0fdf4; border-color: #bbf7d0; color: #15803d; }
.alert-tip .alert-accent-line { background: #22c55e; }

/* Print Settings Cards */
.print-card {
    padding: 1.5rem; 
    margin: 0; 
    background: #f8fafc;
}

.print-card h3 { font-size: 1.1rem; }
.print-card p, .print-card ul { font-size: 0.9rem; }

/* Footer CTA Section */
.footer-cta {
    border-left: 4px solid var(--neon-cyan);
}

.flex-wrap-center {
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    flex-wrap: wrap; 
    gap: 1rem;
}

.btn-outline-cyan {
    font-size: 0.85rem; 
    padding: 0.5rem 1rem; 
    border: 1px solid var(--neon-cyan); 
    color: var(--neon-cyan); 
    background: transparent;
    text-decoration: none;
}

/* --- SOFTWARE SETUP UTILITIES --- */

.ascii-diagram-box {
    background: var(--dark-surface); 
    padding: 2rem; 
    border-radius: 12px; 
    overflow-x: auto; 
    margin-top: 1.5rem; 
    border: 1px solid var(--border-light); 
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.ascii-diagram-box pre {
    font-family: monospace; 
    color: var(--neon-cyan); 
    background: transparent; 
    padding: 0; 
    box-shadow: none; 
    border: none; 
    font-size: 0.85rem; 
    line-height: 1.2;
}

/* Quick Diagnostic Grid Cards */
.diag-grid-card {
    border: 1px solid var(--border-light); 
    padding: 1rem; 
    border-radius: 8px;
}

.diag-grid-card strong {
    color: #e11d48;
    display: block;
}

.diag-grid-card p {
    font-size: 0.9rem; 
    margin-bottom: 0; 
    margin-top: 0.25rem;
}

.btn-outline-pink {
    font-size: 0.85rem; 
    padding: 0.5rem 1rem; 
    border: 1px solid var(--neon-pink); 
    color: var(--neon-pink); 
    background: transparent;
    text-decoration: none;
}

/* 1. Base rule applies to BOTH images and videos */
.full-width-image {
    width: 100%;
    border-radius: 8px; /* Optional: keep this if you liked the rounded corners */
}

/* 2. Target ONLY videos with that class to force them to the exact same size */
video.full-width-image {
    aspect-ratio: 16 / 9; 
    object-fit: cover; 
}

/* 3. Target ONLY images with that class so they scale naturally without cropping */
img.full-width-image {
    height: auto; 
    object-fit: initial; /* Resets any lingering object-fit rules */
}

