/*
 * SteamedAndBaked.net v3.1 - Cyberpunk Aesthetic
 * Dark Psychedelic Neon Design System
 */

:root {
    /* CYBERPUNK COLOR PALETTE - Neon & Dark */
    --neon-cyan: #00ffff;
    --neon-magenta: #ff00ff;
    --neon-pink: #ff0080;
    --neon-green: #00ff41;
    --neon-purple: #bf00ff;
    --neon-blue: #0080ff;
    --neon-orange: #ff6600;
    --neon-yellow: #ffff00;
    
    /* Primary Brand Colors */
    --primary: var(--neon-cyan);
    --secondary: var(--neon-magenta);
    --accent: var(--neon-pink);
    
    /* Dark Background Layers */
    --bg-primary: #0a0a0f;
    --bg-secondary: #131318;
    --bg-tertiary: #1a1a24;
    --bg-card: #1f1f2e;
    --bg-elevated: #252538;
    
    /* Text Colors */
    --text-primary: #e0e0ff;
    --text-secondary: #a0a0c0;
    --text-muted: #606080;
    --text-highlight: var(--neon-cyan);
    
    /* Neon Glow Effects */
    --glow-cyan: 0 0 10px var(--neon-cyan), 0 0 20px var(--neon-cyan), 0 0 30px var(--neon-cyan);
    --glow-magenta: 0 0 10px var(--neon-magenta), 0 0 20px var(--neon-magenta), 0 0 30px var(--neon-magenta);
    --glow-pink: 0 0 10px var(--neon-pink), 0 0 20px var(--neon-pink);
    --glow-purple: 0 0 10px var(--neon-purple), 0 0 20px var(--neon-purple);
    
    /* Typography */
    --font-primary: 'Inter', 'Segoe UI', system-ui, sans-serif;
    --font-heading: 'Outfit', 'Space Grotesk', 'Orbitron', monospace;
    --font-mono: 'Fira Code', 'Courier New', monospace;
    
    /* Font Sizes */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    --text-6xl: 3.75rem;
    
    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    
    /* Border & Effects */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --border-neon: 2px solid var(--primary);
    
    /* Animations */
    --transition-fast: 150ms ease;
    --transition-base: 300ms ease;
    --transition-slow: 500ms ease;
    
    /* Z-index */
    --z-base: 1;
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal: 1050;
}

/* ========================================
   RESET & BASE STYLES
   ======================================== */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: var(--font-primary);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    overflow-x: hidden;
    position: relative;
}

/* Animated background effect */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(0, 255, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 0, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(191, 0, 255, 0.03) 0%, transparent 50%);
    z-index: -1;
    animation: pulse 15s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

/* ========================================
   TYPOGRAPHY
   ======================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-4);
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

h1 {
    font-size: var(--text-5xl);
    text-shadow: var(--glow-cyan);
}

h2 {
    font-size: var(--text-4xl);
    color: var(--neon-magenta);
    text-shadow: var(--glow-magenta);
}

h3 { font-size: var(--text-3xl); }
h4 { font-size: var(--text-2xl); }
h5 { font-size: var(--text-xl); }
h6 { font-size: var(--text-lg); }

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

a {
    color: var(--primary);
    text-decoration: none;
    transition: all var(--transition-fast);
    position: relative;
}

a:hover {
    color: var(--neon-magenta);
    text-shadow: var(--glow-cyan);
}

a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-magenta));
    transition: width var(--transition-base);
}

a:hover::after {
    width: 100%;
}

code, pre {
    font-family: var(--font-mono);
    background: var(--bg-tertiary);
    border: 1px solid var(--primary);
    border-radius: var(--radius-sm);
}

code {
    padding: 0.2em 0.4em;
    font-size: 0.9em;
    color: var(--neon-green);
}

pre {
    padding: var(--space-4);
    overflow-x: auto;
    box-shadow: var(--glow-cyan);
}

blockquote {
    border-left: 4px solid var(--neon-magenta);
    padding-left: var(--space-4);
    margin: var(--space-6) 0;
    font-style: italic;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    padding: var(--space-4);
    border-radius: var(--radius-md);
}

/* ========================================
   LAYOUT
   ======================================== */

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-4);
}

.container-narrow {
    max-width: 900px;
}

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

.grid {
    display: grid;
    gap: var(--space-6);
}

.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

/* ========================================
   NAVIGATION
   ======================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-fixed);
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--primary);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-2) var(--space-4);
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 80px;
    width: auto;
    background: transparent;
    transition: transform var(--transition-base), filter var(--transition-base), opacity var(--transition-base);
    filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.7));
    opacity: 0.92;
}

.logo-img:hover {
    transform: scale(1.08);
    filter: drop-shadow(0 0 18px rgba(139, 92, 246, 1)) drop-shadow(0 0 8px rgba(236, 72, 153, 0.7));
    opacity: 1;
}

.nav-menu {
    display: flex;
    gap: var(--space-6);
    list-style: none;
}

.nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    font-size: var(--text-sm);
    letter-spacing: 0.1em;
    position: relative;
    overflow: hidden;
    border: 1px solid transparent;
    transition:
        color 0.25s ease,
        background 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.2s ease,
        letter-spacing 0.25s ease;
}

/* Sliding underline bar */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: calc(100% - 1.2rem);
    height: 2px;
    background: linear-gradient(90deg, var(--neon-magenta), var(--neon-cyan), var(--neon-purple));
    border-radius: 2px;
    transition: transform 0.25s ease;
    box-shadow: 0 0 6px var(--neon-cyan);
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: translateX(-50%) scaleX(1);
}

/* Scanline flash on hover */
.nav-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(0, 255, 255, 0.06) 50%,
        transparent 100%
    );
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    pointer-events: none;
}

.nav-link:hover::before {
    transform: translateY(0);
}

.nav-link:hover,
.nav-link.active {
    color: var(--neon-cyan);
    background: rgba(0, 255, 255, 0.07);
    border-color: rgba(0, 255, 255, 0.25);
    box-shadow:
        0 0 10px rgba(0, 255, 255, 0.2),
        inset 0 0 8px rgba(0, 255, 255, 0.05);
    transform: translateY(-2px);
    letter-spacing: 0.14em;
}

/* Per-item neon color accents on hover
   Homepage nav uses pipe <li> separators so real positions are odd: 1,3,5,7,9,11
   Inner pages have no pipes so positions are: 1,2,3,4,5,6,7
   Both sets are listed so all pages are covered. */

/* — Homepage (with pipes): Stories=1, Poetry=3, Comics=5, Essays=7, Videos=9, About=11 — */
.nav-menu li:nth-child(1)  .nav-link:hover { color: var(--neon-cyan);    border-color: rgba(0,255,255,0.35);    box-shadow: 0 0 12px rgba(0,255,255,0.35),    inset 0 0 8px rgba(0,255,255,0.06); }
.nav-menu li:nth-child(3)  .nav-link:hover { color: var(--neon-magenta); border-color: rgba(255,0,255,0.35);    box-shadow: 0 0 12px rgba(255,0,255,0.35),   inset 0 0 8px rgba(255,0,255,0.06); }
.nav-menu li:nth-child(5)  .nav-link:hover { color: var(--neon-pink);    border-color: rgba(255,0,128,0.35);    box-shadow: 0 0 12px rgba(255,0,128,0.35),   inset 0 0 8px rgba(255,0,128,0.06); }
.nav-menu li:nth-child(7)  .nav-link:hover { color: var(--neon-purple);  border-color: rgba(191,0,255,0.35);    box-shadow: 0 0 12px rgba(191,0,255,0.35),   inset 0 0 8px rgba(191,0,255,0.06); }
.nav-menu li:nth-child(9)  .nav-link:hover { color: var(--neon-green);   border-color: rgba(0,255,65,0.35);     box-shadow: 0 0 12px rgba(0,255,65,0.35),    inset 0 0 8px rgba(0,255,65,0.06);  }
.nav-menu li:nth-child(11) .nav-link:hover { color: var(--neon-orange);  border-color: rgba(255,102,0,0.35);    box-shadow: 0 0 12px rgba(255,102,0,0.35),   inset 0 0 8px rgba(255,102,0,0.06); }

/* — Inner pages (no pipes): Home=1, Stories=2, Poetry=3, Comics=4, Essays=5, Videos=6, About=7 — */
.nav-menu li:nth-child(2)  .nav-link:hover { color: var(--neon-magenta); border-color: rgba(255,0,255,0.35);    box-shadow: 0 0 12px rgba(255,0,255,0.35),   inset 0 0 8px rgba(255,0,255,0.06); }
.nav-menu li:nth-child(4)  .nav-link:hover { color: var(--neon-pink);    border-color: rgba(255,0,128,0.35);    box-shadow: 0 0 12px rgba(255,0,128,0.35),   inset 0 0 8px rgba(255,0,128,0.06); }
.nav-menu li:nth-child(6)  .nav-link:hover { color: var(--neon-blue);    border-color: rgba(0,128,255,0.35);    box-shadow: 0 0 12px rgba(0,128,255,0.35),   inset 0 0 8px rgba(0,128,255,0.06); }
/* child(7) already covered above for inner-page About, child(9)/child(11) cover homepage Videos/About */

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    background: none;
    border: 2px solid var(--primary);
    color: var(--primary);
    font-size: var(--text-xl);
    padding: var(--space-2);
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.nav-toggle:hover {
    box-shadow: var(--glow-cyan);
}

@media (max-width: 768px) {
    .logo-img {
        height: 60px;
    }

    .nav-toggle {
        display: block;
    }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-primary);
        flex-direction: column;
        padding: var(--space-4);
        border-top: 1px solid var(--primary);
        display: none;
    }
    
    .nav-menu.active {
        display: flex;
    }
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: var(--space-20) 0;
    margin-top: 60px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(0, 255, 255, 0.1) 0%, transparent 70%);
    animation: heroGlow 8s ease-in-out infinite;
}

@keyframes heroGlow {
    0%, 100% { opacity: 0.3; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.6; transform: translate(-50%, -50%) scale(1.1); }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 6rem);
    margin-bottom: var(--space-6);
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-magenta), var(--neon-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s linear infinite;
    background-size: 200% 200%;
}

@keyframes shimmer {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-subtitle {
    font-size: var(--text-xl);
    color: var(--text-secondary);
    margin-bottom: var(--space-8);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ========================================
   BUTTONS
   ======================================== */

.btn {
    display: inline-block;
    padding: var(--space-3) var(--space-6);
    font-weight: 600;
    text-align: center;
    border: 2px solid var(--primary);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-base);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: var(--text-sm);
    background: transparent;
    color: var(--primary);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    transition: left var(--transition-slow);
}

.btn:hover::before {
    left: 100%;
}

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

.btn::after {
    display: none;
}

.btn-primary {
    background: var(--primary);
    color: var(--bg-primary);
}

.btn-primary:hover {
    background: var(--neon-magenta);
    border-color: var(--neon-magenta);
    box-shadow: var(--glow-magenta);
    color: var(--bg-primary);
}

.btn-secondary {
    border-color: var(--neon-magenta);
    color: var(--neon-magenta);
}

.btn-secondary:hover {
    background: var(--neon-magenta);
    color: var(--bg-primary);
    box-shadow: var(--glow-magenta);
}

.btn-ghost {
    border-color: var(--text-secondary);
    color: var(--text-secondary);
}

.btn-ghost:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* ========================================
   CARDS
   ======================================== */

.card {
    background: var(--bg-card);
    border: 1px solid var(--primary);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--neon-cyan), var(--neon-magenta), var(--neon-purple), var(--neon-cyan));
    border-radius: var(--radius-lg);
    z-index: -1;
    opacity: 0;
    transition: opacity var(--transition-base);
    background-size: 300% 300%;
    animation: borderGlow 6s linear infinite;
}

@keyframes borderGlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 255, 255, 0.3);
}

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

.card-title {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-3);
    color: var(--primary);
}

.card-meta {
    display: flex;
    gap: var(--space-4);
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin-bottom: var(--space-4);
}

.card-content {
    color: var(--text-secondary);
}

/* ========================================
   CONTENT DISPLAY
   ======================================== */

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: var(--space-8);
    margin-top: var(--space-12);
}

.content-item {
    background: var(--bg-card);
    border: 1px solid var(--bg-elevated);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-base);
    cursor: pointer;
}

.content-item:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 255, 255, 0.2);
}

.content-thumbnail {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: linear-gradient(135deg, var(--bg-tertiary), var(--bg-elevated));
}

.content-body {
    padding: var(--space-6);
}

.content-category {
    display: inline-block;
    padding: var(--space-1) var(--space-3);
    background: var(--bg-tertiary);
    color: var(--primary);
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: var(--radius-sm);
    border: 1px solid var(--primary);
    margin-bottom: var(--space-3);
}

/* ========================================
   GLITCH EFFECT
   ======================================== */

.glitch {
    position: relative;
    animation: glitch 2s infinite;
}

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

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 var(--neon-magenta);
    clip-path: inset(44px 0 calc(100% - 56px) 0);
    animation: glitch-anim 3s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -2px 0 var(--neon-cyan);
    clip-path: inset(44px 0 calc(100% - 56px) 0);
    animation: glitch-anim 2s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0%   { clip-path: inset(10px 0 calc(100% - 98px) 0); }
    20%  { clip-path: inset(85px 0 calc(100% - 12px) 0); }
    40%  { clip-path: inset(28px 0 calc(100% - 52px) 0); }
    60%  { clip-path: inset(91px 0 calc(100% - 34px) 0); }
    80%  { clip-path: inset(65px 0 calc(100% - 77px) 0); }
    100% { clip-path: inset(42px 0 calc(100% - 19px) 0); }
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--primary);
    padding: var(--space-12) 0 var(--space-6);
    margin-top: var(--space-20);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-8);
    margin-bottom: var(--space-8);
}

.footer-section h4 {
    color: var(--primary);
    margin-bottom: var(--space-4);
    font-size: var(--text-lg);
}

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

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

.footer-links a {
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

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

.footer-bottom {
    text-align: center;
    padding-top: var(--space-6);
    border-top: 1px solid var(--bg-elevated);
    color: var(--text-muted);
    font-size: var(--text-sm);
}

/* ========================================
   UTILITIES
   ======================================== */

.text-center { text-align: center; }
.text-gradient {
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-magenta));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.neon-text {
    color: var(--primary);
    text-shadow: var(--glow-cyan);
}

.mt-4 { margin-top: var(--space-4); }
.mb-4 { margin-bottom: var(--space-4); }
.mt-8 { margin-top: var(--space-8); }
.mb-8 { margin-bottom: var(--space-8); }

/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

.slide-in {
    animation: slideIn 0.6s ease forwards;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: var(--radius-sm);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--neon-magenta);
}

/* Selection */
::selection {
    background: var(--primary);
    color: var(--bg-primary);
}

/* ========================================
   NEW LAYOUT: SITE HEADER
   ======================================== */

.site-header {
    background: var(--bg-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--space-6) var(--space-4) 0;
    position: relative;
    z-index: var(--z-fixed);
}

.header-logo {
    display: flex;
    justify-content: center;
    margin-bottom: var(--space-2);
}

.header-logo a {
    display: inline-block;
}

.header-logo a::after { display: none; }

.header-logo .logo-img {
    height: 160px;
    width: auto;
    filter: drop-shadow(0 0 18px rgba(139, 92, 246, 0.8));
    transition: transform var(--transition-base), filter var(--transition-base);
}

.header-logo .logo-img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 28px rgba(139, 92, 246, 1)) drop-shadow(0 0 12px rgba(236, 72, 153, 0.7));
}

/* ========================================
   NEW LAYOUT: SITE NAV (centered, pipes)
   ======================================== */

.site-nav {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: var(--space-3) 0 var(--space-4);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.site-nav .nav-menu {
    display: flex;
    align-items: center;
    gap: 0;
    list-style: none;
    flex-wrap: wrap;
    justify-content: center;
}

.site-nav .nav-link {
    font-family: 'Outfit', var(--font-primary);
    font-size: 1rem;
    font-weight: 500;
    color: #c8c8e0;
    padding: var(--space-1) var(--space-6);
    letter-spacing: 0.03em;
    text-transform: none;
    transition: color var(--transition-fast);
    border-radius: 0;
    background: none;
}

.site-nav .nav-link:hover,
.site-nav .nav-link.active {
    color: #ffffff;
    background: none;
    box-shadow: none;
    text-shadow: 0 0 10px rgba(255,255,255,0.4);
}

.site-nav .nav-link::after { display: none; }

.nav-pipe {
    color: rgba(255,255,255,0.25);
    font-size: 1.1rem;
    user-select: none;
    list-style: none;
}

.site-nav .nav-toggle {
    display: none;
    background: none;
    border: 1px solid rgba(255,255,255,0.3);
    color: #c8c8e0;
    font-size: var(--text-xl);
    padding: var(--space-2) var(--space-3);
    cursor: pointer;
    border-radius: var(--radius-sm);
    margin-right: var(--space-4);
}

/* ========================================
   NEW LAYOUT: HERO BANNER
   ======================================== */

/* Hero banner keyframes */
@keyframes heroPan {
    0%   { transform: scale(1.08) translateX(0px) translateY(0px); }
    25%  { transform: scale(1.10) translateX(-18px) translateY(-6px); }
    50%  { transform: scale(1.12) translateX(-10px) translateY(4px); }
    75%  { transform: scale(1.10) translateX(14px) translateY(-4px); }
    100% { transform: scale(1.08) translateX(0px) translateY(0px); }
}

@keyframes scanline {
    0%   { top: -8px; opacity: 0; }
    5%   { opacity: 0.18; }
    95%  { opacity: 0.18; }
    100% { top: 110%; opacity: 0; }
}

@keyframes edgePulse {
    0%, 100% { opacity: 0.55; }
    50%       { opacity: 0.8; }
}

@keyframes chromaFlicker {
    0%, 100% { filter: brightness(0.58) saturate(1.25) hue-rotate(0deg); }
    20%       { filter: brightness(0.60) saturate(1.35) hue-rotate(4deg); }
    40%       { filter: brightness(0.56) saturate(1.20) hue-rotate(-3deg); }
    60%       { filter: brightness(0.59) saturate(1.30) hue-rotate(2deg); }
    80%       { filter: brightness(0.57) saturate(1.22) hue-rotate(-2deg); }
}

.hero-banner {
    position: relative;
    width: 100%;
    height: 340px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Scanline sweep */
.hero-banner::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 8px;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(20, 184, 166, 0.25) 50%,
        transparent 100%
    );
    animation: scanline 5s linear infinite;
    z-index: 4;
    pointer-events: none;
}

/* Neon edge vignette pulse */
.hero-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 0% 50%,   rgba(139, 92, 246, 0.18) 0%, transparent 55%),
        radial-gradient(ellipse at 100% 50%,  rgba(20, 184, 166, 0.18) 0%, transparent 55%),
        radial-gradient(ellipse at 50% 100%, rgba(236, 72, 153, 0.12) 0%, transparent 50%);
    animation: edgePulse 4s ease-in-out infinite;
    z-index: 3;
    pointer-events: none;
}

.hero-banner-img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    animation: heroPan 22s ease-in-out infinite, chromaFlicker 9s ease-in-out infinite;
}

.hero-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(10,10,15,0.05) 0%,
        rgba(10,10,15,0.30) 45%,
        rgba(10,10,15,0.65) 100%
    );
    z-index: 2;
}

.hero-banner-content {
    position: relative;
    z-index: 5;
    text-align: center;
    padding: 0 var(--space-8);
    max-width: 900px;
}

.hero-headline {
    font-family: 'Outfit', var(--font-heading);
    font-size: clamp(1.8rem, 4.5vw, 3rem);
    font-weight: 800;
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
    letter-spacing: 0.06em;
    text-shadow:
        0 0 30px rgba(255,255,255,0.5),
        0 2px 4px rgba(0,0,0,1),
        0 4px 24px rgba(0,0,0,0.9);
    margin-bottom: var(--space-3);
    text-transform: uppercase;
    padding: 0.4rem 1.2rem;
    background: rgba(0,0,0,0.35);
    backdrop-filter: blur(4px);
    border-radius: 4px;
    display: inline-block;
    cursor: default;
    border: 1px solid transparent;
    transition:
        text-shadow 0.35s ease,
        background 0.35s ease,
        border-color 0.35s ease,
        transform 0.25s ease,
        letter-spacing 0.35s ease;
}

.hero-headline:hover {
    background: rgba(191, 0, 255, 0.18);
    border-color: rgba(191, 0, 255, 0.55);
    -webkit-text-fill-color: transparent;
    background-clip: text;
    -webkit-background-clip: text;
    background-image: linear-gradient(
        90deg,
        #ff00ff 0%,
        #bf00ff 25%,
        #00ffff 50%,
        #bf00ff 75%,
        #ff00ff 100%
    );
    background-size: 200% auto;
    text-shadow: none;
    transform: scale(1.03);
    letter-spacing: 0.10em;
    animation: heroTextSweep 1.8s linear infinite;
}

.hero-sub {
    font-family: 'Inter', var(--font-primary);
    font-size: clamp(0.9rem, 2vw, 1.05rem);
    color: rgba(255,255,255,0.92);
    margin: 0;
    text-shadow:
        0 1px 2px rgba(0,0,0,1),
        0 2px 12px rgba(0,0,0,0.9);
    padding: 0.25rem 0.8rem;
    background: rgba(0,0,0,0.3);
    backdrop-filter: blur(3px);
    border-radius: 3px;
    display: inline-block;
    letter-spacing: 0.01em;
    cursor: default;
    border: 1px solid transparent;
    transition:
        color 0.35s ease,
        text-shadow 0.35s ease,
        background 0.35s ease,
        border-color 0.35s ease,
        transform 0.25s ease,
        letter-spacing 0.3s ease;
}

.hero-sub:hover {
    color: #00ffff;
    background: rgba(0, 255, 255, 0.10);
    border-color: rgba(0, 255, 255, 0.40);
    text-shadow:
        0 0 8px rgba(0, 255, 255, 0.9),
        0 0 20px rgba(0, 255, 255, 0.6),
        0 0 40px rgba(191, 0, 255, 0.4);
    letter-spacing: 0.04em;
    transform: scale(1.02);
}

@keyframes heroTextSweep {
    0%   { background-position: 0% center; }
    100% { background-position: 200% center; }
}

/* ========================================
   NEW LAYOUT: LATEST DISCOVERIES
   ======================================== */

.discoveries {
    background: var(--bg-primary);
    padding: var(--space-12) 0 var(--space-16);
}

.discoveries-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.discoveries-title {
    font-family: 'Outfit', var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: var(--space-6);
    padding-bottom: var(--space-3);
    border-bottom: 2px solid #14b8a6;
    display: inline-block;
    background: none;
    -webkit-text-fill-color: #ffffff;
    text-shadow: none;
}

.discoveries-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-4);
}

.disc-card {
    background: #0e0e18;
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    border: 1px solid rgba(255,255,255,0.06);
}

.disc-card:hover {
    transform: translateY(-4px);
}

.disc-card--purple:hover { box-shadow: 0 8px 30px rgba(139, 92, 246, 0.35); }
.disc-card--pink:hover   { box-shadow: 0 8px 30px rgba(236, 72, 153, 0.35); }
.disc-card--teal:hover   { box-shadow: 0 8px 30px rgba(20, 184, 166, 0.35); border-color: rgba(20,184,166,0.4); }
.disc-card--orange:hover { box-shadow: 0 8px 30px rgba(255, 102, 0, 0.35);  border-color: rgba(255,102,0,0.4); }

.disc-card--teal   { border-color: rgba(20, 184, 166, 0.35); }
.disc-card--orange { border-color: rgba(255, 102, 0, 0.35); }

.disc-card-img {
    width: 100%;
    height: 160px;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    position: relative;
    transition: transform var(--transition-slow);
}

/* CSS-only gradient thumbnails — no external image dependency */
.disc-card-img--story  { background: linear-gradient(135deg, #0d0d1a 0%, #1a0a2e 40%, #2d1b4e 100%); }
.disc-card-img--poetry { background: linear-gradient(135deg, #0a0d1a 0%, #0d1f3c 50%, #1a2d4e 100%); }
.disc-card-img--comics { background: linear-gradient(135deg, #0a1a1a 0%, #0a2626 50%, #0d3333 100%); }
.disc-card-img--essays { background: linear-gradient(135deg, #1a0d00 0%, #2e1500 50%, #3d1f00 100%); }

/* Animated noise texture overlay on card images */
.disc-card-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
    opacity: 0.5;
}

.disc-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--transition-slow);
}

.disc-card:hover .disc-card-img {
    transform: scale(1.04);
}

.disc-card:hover .disc-card-img img {
    transform: scale(1.06);
}

.disc-card-body {
    padding: var(--space-4);
    display: flex;
    flex-direction: column;
    flex: 1;
}

.disc-card-title {
    font-family: 'Outfit', var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: var(--space-2);
    letter-spacing: 0.01em;
    line-height: 1.3;
    background: none;
    -webkit-text-fill-color: #ffffff;
    text-shadow: none;
}

.disc-card-desc {
    font-family: 'Inter', var(--font-primary);
    font-size: 0.8rem;
    color: #8888aa;
    margin-bottom: var(--space-4);
    flex: 1;
    line-height: 1.5;
}

.disc-btn {
    display: inline-block;
    padding: 0.4rem 1rem;
    font-family: 'Outfit', var(--font-heading);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #ffffff;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-align: center;
    width: fit-content;
}

.disc-btn::after { display: none; }

.disc-card--purple .disc-btn:hover {
    background: rgba(139, 92, 246, 0.2);
    border-color: #8b5cf6;
    color: #c4b5fd;
}

.disc-card--pink .disc-btn:hover {
    background: rgba(236, 72, 153, 0.2);
    border-color: #ec4899;
    color: #f9a8d4;
}

.disc-card--teal .disc-btn:hover {
    background: rgba(20, 184, 166, 0.2);
    border-color: #14b8a6;
    color: #5eead4;
}

.disc-card--orange .disc-btn:hover {
    background: rgba(255, 102, 0, 0.2);
    border-color: #ff6600;
    color: #ffaa66;
}

/* ========================================
   NEW LAYOUT: SLIM FOOTER
   ======================================== */

.site-footer {
    background: var(--bg-primary);
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: var(--space-4) 0;
}

.site-footer-inner {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 var(--space-6);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-left {
    display: flex;
    gap: var(--space-6);
    align-items: center;
}

.footer-link {
    font-family: 'Inter', var(--font-primary);
    font-size: 0.85rem;
    color: #8888aa;
    transition: color var(--transition-fast);
}

.footer-link::after { display: none; }

.footer-link:hover {
    color: #ffffff;
    text-shadow: none;
}

.footer-right {
    display: flex;
    gap: var(--space-4);
    align-items: center;
}

.footer-social {
    font-size: 1rem;
    color: #8888aa;
    transition: color var(--transition-fast);
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.15);
}

.footer-social::after { display: none; }

.footer-social:hover {
    color: #ffffff;
    border-color: rgba(255,255,255,0.4);
    background: rgba(255,255,255,0.05);
    text-shadow: none;
}

/* ========================================
   RESPONSIVE: NEW LAYOUT
   ======================================== */

@media (max-width: 1024px) {
    .discoveries-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .content-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero-title {
        font-size: clamp(2rem, 6vw, 3.5rem);
    }
    .hero-subtitle {
        font-size: clamp(0.85rem, 2vw, 1rem);
    }
    /* Ensure nav touch targets are ≥44px */
    .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
}

@media (max-width: 768px) {
    /* Prevent horizontal overflow */
    body { overflow-x: hidden; }

    .header-logo .logo-img {
        height: 110px;
    }

    .site-nav .nav-toggle {
        display: block;
        position: absolute;
        right: var(--space-4);
        top: var(--space-4);
    }

    .site-nav .nav-menu {
        display: none;
        flex-direction: column;
        gap: 0;
        background: var(--bg-secondary);
        padding: var(--space-4);
        width: 100%;
        border-top: 1px solid rgba(255,255,255,0.08);
    }

    .site-nav .nav-menu.active {
        display: flex;
    }

    .nav-pipe { display: none; }

    .site-nav .nav-link {
        padding: var(--space-3) var(--space-4);
        width: 100%;
        text-align: center;
    }

    .hero-banner {
        height: 240px;
    }

    .discoveries-grid {
        grid-template-columns: 1fr;
    }

    .site-footer-inner {
        flex-direction: column;
        gap: var(--space-4);
        text-align: center;
    }

    .footer-left {
        flex-wrap: wrap;
        justify-content: center;
    }

    /* Tap target sizing for mobile */
    .disc-btn,
    .btn {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .footer-social {
        width: 44px;
        height: 44px;
    }

    .footer-link {
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    /* Content grid single column */
    .content-grid {
        grid-template-columns: 1fr;
    }

    /* Page header padding */
    .page-header {
        padding: var(--space-8) var(--space-4);
    }

    .page-title {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
    }
}

/* ========================================
   ACCESSIBILITY
   ======================================== */

/* Screen-reader only utility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus visible ring for keyboard navigation */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--neon-cyan);
    outline-offset: 3px;
    border-radius: var(--radius-sm);
}

/* ========================================
   PAGE HEADER (inner pages)
   ======================================== */

.page-header {
    background: var(--bg-secondary);
    border-bottom: 1px solid rgba(0, 255, 255, 0.12);
    padding: var(--space-16) 0 var(--space-12);
    text-align: center;
    margin-top: 0;
}

.page-title {
    font-family: 'Outfit', var(--font-heading);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -0.01em;
    margin-bottom: var(--space-4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    -webkit-text-fill-color: transparent;
}

.page-subtitle {
    font-family: 'Inter', var(--font-primary);
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ========================================
   TAGS
   ======================================== */

.tag {
    display: inline-block;
    padding: var(--space-1) var(--space-3);
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    font-size: var(--text-xs);
    font-family: 'Inter', var(--font-primary);
    border-radius: var(--radius-sm);
    border: 1px solid var(--bg-elevated);
    letter-spacing: 0.03em;
    transition: border-color var(--transition-fast), color var(--transition-fast);
}

.tag:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.content-tags {
    display: flex;
    gap: var(--space-2);
    flex-wrap: wrap;
    margin-top: auto;
    padding-top: var(--space-3);
}

/* ========================================
   VIDEO CONTENT
   ======================================== */

.content-thumbnail--video {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ========================================
   CONTENT META (videos / inner pages)
   ======================================== */

.content-meta {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-2);
    font-size: var(--text-sm);
}

.content-title {
    font-family: 'Outfit', var(--font-heading);
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-2);
    -webkit-text-fill-color: var(--text-primary);
}

.content-excerpt {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-3);
}

.content-date {
    font-size: var(--text-xs);
    color: var(--text-muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* ========================================
   FOOTER COPY LINE
   ======================================== */

.footer-copy {
    text-align: center;
    font-size: var(--text-xs);
    color: var(--text-muted);
    padding: var(--space-3) var(--space-6);
    margin: 0;
    border-top: 1px solid rgba(255,255,255,0.04);
}

/* ========================================
   CTA SECTION
   ======================================== */

.cta-section {
    background: var(--bg-secondary);
    border-top: 1px solid rgba(255,255,255,0.06);
}
