/* ==========================================================================
   GEEK COSMOS - CUSTOM CYBER-METALLIC GHOST THEME
   Palette:
   --text: #ddfcf8;
   --background: #003a58;
   --primary: #00a6bc;
   --secondary: #00d0ff;
   --accent: #72ff00;
   ========================================================================== */

:root {
    --text: #ddfcf8;
    --text-pure: #ffffff;
    --text-muted: rgba(221, 252, 248, 0.72);
    --text-dim: rgba(221, 252, 248, 0.45);
    
    --background: #003a58;
    --background-dark: #001f30;
    --background-card: rgba(0, 45, 70, 0.65);
    
    --primary: #00a6bc;
    --primary-hover: #00bfd8;
    --secondary: #00d0ff;
    --secondary-hover: #33d9ff;
    --accent: #72ff00;
    --accent-hover: #8aff24;
    --accent-glow: rgba(114, 255, 0, 0.35);
    --cyber-blue-glow: rgba(0, 208, 255, 0.4);
    
    --glass-bg: rgba(0, 36, 56, 0.75);
    --glass-card-bg: rgba(0, 48, 74, 0.58);
    --glass-card-hover: rgba(0, 68, 102, 0.78);
    --glass-border: rgba(0, 208, 255, 0.22);
    --glass-border-hover: rgba(114, 255, 0, 0.55);
    --glass-blur: blur(20px);
    --glass-shadow: 0 16px 40px -10px rgba(0, 15, 25, 0.7), 0 0 25px -5px rgba(0, 166, 188, 0.25);
    --glass-shadow-hover: 0 20px 50px -5px rgba(0, 10, 20, 0.85), 0 0 30px rgba(114, 255, 0, 0.3);
    
    --font-heading: 'Space Grotesk', 'Outfit', system-ui, -apple-system, sans-serif;
    --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
    --container-width: 1200px;
    --header-height: 76px;
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    background-color: var(--background);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* ==========================================================================
   SPACE & NEBULA CANVAS BACKGROUND
   ========================================================================== */
.space-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
    background: radial-gradient(circle at 50% 20%, #00456a 0%, #002e47 50%, #001927 100%);
}

#space-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.cosmic-dust-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
    opacity: 0.35;
    animation: cosmicDrift 24s ease-in-out infinite alternate;
}

.dust-1 {
    top: -10%;
    left: 15%;
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, var(--secondary) 0%, transparent 70%);
}

.dust-2 {
    top: 45%;
    right: -10%;
    width: 650px;
    height: 650px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    animation-delay: -8s;
}

.dust-3 {
    bottom: -15%;
    left: 20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(114, 255, 0, 0.25) 0%, transparent 70%);
    animation-delay: -16s;
}

@keyframes cosmicDrift {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(40px, 50px) scale(1.1); }
    100% { transform: translate(-30px, -40px) scale(0.92); }
}

/* ==========================================================================
   LAYOUT WRAPPER
   ========================================================================== */
.site-wrapper {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-main {
    flex: 1 0 auto;
    padding-top: calc(var(--header-height) + 2rem);
    padding-bottom: 5rem;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* ==========================================================================
   METALLIC GLASS HEADER & TOP MENU
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--glass-border);
    z-index: 100;
    transition: all var(--transition-fast);
}

.site-header.scrolled {
    background: rgba(0, 25, 40, 0.92);
    border-bottom-color: var(--secondary);
    box-shadow: 0 10px 30px rgba(0, 10, 20, 0.6);
}

.header-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.site-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-pure);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: -0.01em;
    flex-shrink: 0;
}

.brand-badge {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 50%, var(--accent) 100%);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #001f30;
    font-weight: 900;
    font-size: 1.1rem;
    box-shadow: 0 0 16px var(--secondary);
}

.brand-text {
    background: linear-gradient(135deg, #ffffff 30%, var(--text) 70%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: filter var(--transition-fast);
}

.site-brand:hover .brand-text {
    filter: drop-shadow(0 0 10px var(--accent));
}

/* Nav Menu */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    list-style: none;
}

.nav-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    color: var(--text);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    transition: all var(--transition-fast);
}

.nav-link:hover, .nav-link:focus, .nav-current .nav-link {
    color: #ffffff;
    background: rgba(0, 208, 255, 0.15);
    border-color: rgba(0, 208, 255, 0.4);
    box-shadow: 0 0 12px rgba(0, 208, 255, 0.3);
}

.nav-current .nav-link {
    background: rgba(114, 255, 0, 0.15);
    border-color: var(--accent);
    color: var(--accent);
}

/* Header Buttons */
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.btn-header-action {
    background: rgba(0, 48, 74, 0.6);
    border: 1px solid var(--glass-border);
    color: var(--text);
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-header-action:hover, .btn-header-action:focus {
    background: rgba(0, 208, 255, 0.25);
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 0 15px var(--accent-glow);
    outline: none;
}

.btn-header-action.active {
    background: rgba(114, 255, 0, 0.2);
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 0 15px var(--accent-glow);
}

.btn-mobile-toggle {
    display: none;
}

/* ==========================================================================
   CYBER MEDIA PLAYER (YOUTUBE MUSIC + LOCAL MP3s)
   ========================================================================== */
.media-player-drawer {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 380px;
    max-width: calc(100vw - 48px);
    background: rgba(0, 28, 45, 0.94);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 50px rgba(0, 10, 20, 0.85), 0 0 25px rgba(0, 208, 255, 0.25);
    z-index: 150;
    transition: all var(--transition-smooth);
    overflow: hidden;
}

.media-player-drawer.minimized {
    transform: translateY(calc(100% + 40px));
    opacity: 0;
    pointer-events: none;
}

.player-header {
    padding: 0.9rem 1.25rem;
    background: rgba(0, 40, 65, 0.7);
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.player-title {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.player-title .status-dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent);
    animation: pulse 1.8s infinite;
}

.player-tabs {
    display: flex;
    background: rgba(0, 20, 35, 0.6);
    border-radius: var(--radius-sm);
    padding: 2px;
    margin: 0.75rem 1.25rem 0.25rem 1.25rem;
    border: 1px solid var(--glass-border);
}

.player-tab-btn {
    flex: 1;
    padding: 0.4rem 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    background: transparent;
    border: none;
    color: var(--text-muted);
    border-radius: 4px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.player-tab-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #001f30;
    font-weight: 700;
}

.player-body {
    padding: 1.25rem;
}

/* Local Audio Deck */
.audio-track-info {
    margin-bottom: 1rem;
    text-align: center;
}

.audio-track-title {
    font-weight: 700;
    font-size: 1rem;
    color: #ffffff;
    margin-bottom: 0.2rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.audio-track-artist {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

/* Audio Scrubber */
.audio-progress-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-dim);
}

.audio-progress-bar {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 5px;
    background: rgba(0, 208, 255, 0.2);
    border-radius: var(--radius-full);
    outline: none;
    cursor: pointer;
}

.audio-progress-bar::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent);
    cursor: pointer;
}

/* Audio Controls */
.audio-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.btn-audio-ctrl {
    background: rgba(0, 48, 74, 0.7);
    border: 1px solid var(--glass-border);
    color: var(--text);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-audio-ctrl:hover {
    border-color: var(--secondary);
    color: #ffffff;
    box-shadow: 0 0 10px var(--cyber-blue-glow);
}

.btn-audio-play {
    width: 46px;
    height: 46px;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
    color: #001f30;
    border: none;
    box-shadow: 0 0 20px var(--accent-glow);
}

.btn-audio-play:hover {
    transform: scale(1.08);
    box-shadow: 0 0 25px var(--accent);
}

.audio-playlist-queue {
    max-height: 120px;
    overflow-y: auto;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    background: rgba(0, 20, 32, 0.5);
}

.playlist-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    cursor: pointer;
    border-bottom: 1px solid rgba(0, 208, 255, 0.1);
    transition: background var(--transition-fast);
}

.playlist-item:hover, .playlist-item.active {
    background: rgba(0, 208, 255, 0.18);
    color: #ffffff;
}

.playlist-item.active {
    color: var(--accent);
    font-weight: 700;
}

/* YouTube Music Embed */
.youtube-player-view {
    display: none;
}

.yt-input-wrap {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.85rem;
}

.yt-input {
    flex: 1;
    padding: 0.5rem 0.75rem;
    background: rgba(0, 20, 35, 0.7);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: #ffffff;
    font-size: 0.8rem;
    font-family: var(--font-mono);
}

.yt-input:focus {
    outline: none;
    border-color: var(--secondary);
}

.yt-frame-container {
    position: relative;
    padding-top: 56.25%;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--glass-border);
    background: #000;
}

.yt-frame-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ==========================================================================
   SLIDE-OUT SITE SEARCH DRAWER (FROM THE RIGHT)
   ========================================================================== */
.search-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 20, 35, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-smooth), visibility var(--transition-smooth);
}

.search-drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 480px;
    height: 100vh;
    background: rgba(0, 28, 45, 0.95);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-left: 1px solid var(--secondary);
    box-shadow: -15px 0 50px rgba(0, 10, 20, 0.85);
    z-index: 201;
    transform: translateX(100%);
    transition: transform var(--transition-smooth);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.search-drawer.active {
    transform: translateX(0);
}

.search-drawer-header {
    padding: 1.5rem 1.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--glass-border);
}

.search-drawer-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-close-drawer {
    background: rgba(0, 48, 74, 0.6);
    border: 1px solid var(--glass-border);
    color: var(--text);
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-close-drawer:hover {
    background: rgba(0, 208, 255, 0.25);
    border-color: var(--accent);
    color: #ffffff;
}

.search-drawer-body {
    padding: 1.75rem;
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.search-input-wrap {
    position: relative;
    width: 100%;
}

.search-input-wrap .search-icon {
    position: absolute;
    left: 1.1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 0.95rem 1rem 0.95rem 3rem;
    background: rgba(0, 20, 32, 0.7);
    border: 1.5px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: #ffffff;
    font-family: var(--font-body);
    font-size: 1.05rem;
    transition: all var(--transition-fast);
}

.search-input:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(0, 20, 32, 0.9);
    box-shadow: 0 0 20px var(--accent-glow);
}

.search-quick-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.quick-tag-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-family: var(--font-mono);
    letter-spacing: 0.08em;
    color: var(--accent);
    width: 100%;
    margin-bottom: 0.25rem;
}

.quick-tag-btn {
    padding: 0.35rem 0.85rem;
    background: rgba(0, 208, 255, 0.12);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 0.85rem;
    font-family: var(--font-mono);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.quick-tag-btn:hover {
    background: rgba(114, 255, 0, 0.2);
    border-color: var(--accent);
    color: #ffffff;
    box-shadow: 0 0 12px var(--accent-glow);
}

.search-results-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.search-result-item {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 1.15rem;
    background: rgba(0, 40, 65, 0.6);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--text);
    transition: all var(--transition-fast);
}

.search-result-item:hover {
    background: rgba(0, 208, 255, 0.2);
    border-color: var(--accent);
    transform: translateX(4px);
    box-shadow: 0 0 20px var(--accent-glow);
}

.search-result-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
}

.search-result-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-dim);
}

.search-result-tag {
    color: var(--accent);
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
}

/* Force suppress Ghost default white sodo-search modal */
#sodo-search-root, iframe#sodo-search-frame {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* ==========================================================================
   HERO / GEEK COMMAND DECK
   ========================================================================== */
.hero-section {
    margin-bottom: 3.5rem;
}

.hero-card {
    background: var(--glass-card-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 3.5rem 2.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--glass-shadow);
}

.hero-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--secondary), var(--accent), transparent);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1.1rem;
    background: rgba(0, 166, 188, 0.2);
    border: 1px solid var(--accent);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
    box-shadow: 0 0 15px var(--accent-glow);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.25rem, 5.5vw, 3.75rem);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 1.25rem;
    background: linear-gradient(135deg, #ffffff 40%, var(--text) 75%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    font-size: clamp(1.05rem, 2.2vw, 1.25rem);
    color: var(--text-muted);
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.65;
    margin-bottom: 2rem;
}

.hero-tags-bar {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 2rem;
}

.hero-tag-chip {
    padding: 0.35rem 0.85rem;
    background: rgba(0, 36, 56, 0.7);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-family: var(--font-mono);
    color: var(--text-muted);
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.85rem 1.75rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-primary {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    border: 1px solid var(--accent);
    color: #001f30;
    box-shadow: 0 0 20px var(--cyber-blue-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, var(--accent) 0%, var(--secondary) 100%);
    box-shadow: 0 0 25px var(--accent-glow);
}

.btn-ghost {
    background: rgba(0, 40, 65, 0.6);
    border: 1px solid var(--glass-border);
    color: var(--text);
}

.btn-ghost:hover {
    background: rgba(0, 208, 255, 0.2);
    border-color: var(--secondary);
    color: #ffffff;
}

/* ==========================================================================
   POSTS GRID & CARDS
   ========================================================================== */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 1.65rem;
    font-weight: 800;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-title::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 24px;
    background: linear-gradient(180deg, var(--accent), var(--secondary));
    border-radius: var(--radius-sm);
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2rem;
}

.post-card {
    background: var(--glass-card-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-smooth);
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: var(--glass-shadow);
}

.post-card:hover {
    background: var(--glass-card-hover);
    border-color: var(--accent);
    transform: translateY(-6px);
    box-shadow: var(--glass-shadow-hover);
}

.post-card.post-featured {
    border-color: var(--accent);
}

.post-card.post-featured::after {
    content: '★ Featured';
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--accent);
    color: #001f30;
    font-size: 0.75rem;
    font-family: var(--font-mono);
    font-weight: 800;
    text-transform: uppercase;
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius-sm);
    box-shadow: 0 0 15px var(--accent-glow);
    z-index: 2;
}

.post-card-image-link {
    display: block;
    position: relative;
    padding-top: 56.25%;
    overflow: hidden;
    background: #001927;
}

.post-card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.2, 0, 0.2, 1);
}

.post-card:hover .post-card-image {
    transform: scale(1.06);
}

.post-card-content {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.post-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.75rem;
}

.post-card-tag {
    font-size: 0.75rem;
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--accent);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.post-card-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: -0.01em;
    margin-bottom: 0.75rem;
}

.post-card-title a {
    color: #ffffff;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.post-card:hover .post-card-title a {
    color: var(--secondary);
}

.post-card-excerpt {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid var(--glass-border);
    font-size: 0.85rem;
    font-family: var(--font-mono);
    color: var(--text-dim);
}

.post-card-readmore {
    color: var(--accent);
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

/* ==========================================================================
   ARTICLE & PAGE VIEW
   ========================================================================== */
.article-header {
    text-align: center;
    max-width: 860px;
    margin: 0 auto 3rem auto;
}

.article-title {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 900;
    line-height: 1.2;
    color: #ffffff;
    margin-bottom: 1.5rem;
}

.article-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    font-size: 0.95rem;
    font-family: var(--font-mono);
    color: var(--text-muted);
    flex-wrap: wrap;
}

.article-image-wrap {
    max-width: 1050px;
    margin: 0 auto 3.5rem auto;
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

.article-image {
    width: 100%;
    height: auto;
    display: block;
}

.article-content-card {
    max-width: 860px;
    margin: 0 auto;
    background: var(--glass-card-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 3.5rem 3rem;
    box-shadow: var(--glass-shadow);
}

.gh-content {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text);
}

.gh-content p {
    margin-bottom: 1.75rem;
}

.gh-content h1, .gh-content h2, .gh-content h3, .gh-content h4 {
    font-family: var(--font-heading);
    color: #ffffff;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.gh-content h2 {
    font-size: 1.85rem;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 0.5rem;
}

.gh-content a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.gh-content blockquote {
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    background: rgba(0, 208, 255, 0.08);
    border-left: 4px solid var(--accent);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: #ffffff;
}

.gh-content code {
    background: rgba(0, 15, 25, 0.6);
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 0.9em;
    border: 1px solid var(--glass-border);
    color: var(--accent);
}

.gh-content pre {
    background: rgba(0, 15, 25, 0.85);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    overflow-x: auto;
    margin: 2rem 0;
    border: 1px solid var(--glass-border);
}

/* ==========================================================================
   PAGINATION & FOOTER
   ========================================================================== */
.pagination-wrap {
    margin-top: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.pagination-btn {
    padding: 0.75rem 1.5rem;
    background: var(--glass-card-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: var(--text);
    text-decoration: none;
    font-family: var(--font-mono);
    font-weight: 700;
    transition: all var(--transition-fast);
}

.pagination-btn:hover {
    background: rgba(0, 208, 255, 0.25);
    border-color: var(--accent);
    color: #ffffff;
    box-shadow: 0 0 15px var(--accent-glow);
}

.site-footer {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-top: 1px solid var(--glass-border);
    padding: 3rem 0;
    margin-top: auto;
    position: relative;
    z-index: 10;
}

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

.footer-brand {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 800;
    color: #ffffff;
}

.footer-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    list-style: none;
}

.footer-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
}

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

.footer-copy {
    font-size: 0.85rem;
    font-family: var(--font-mono);
    color: var(--text-dim);
}

/* ==========================================================================
   MOBILE RESPONSIVENESS
   ========================================================================== */
.mobile-nav-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: rgba(0, 25, 42, 0.96);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-right: 1px solid var(--secondary);
    z-index: 250;
    transform: translateX(-100%);
    transition: transform var(--transition-smooth);
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.mobile-nav-drawer.active {
    transform: translateX(0);
}

.mobile-nav-drawer .nav-menu {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    width: 100%;
}

.mobile-nav-drawer .nav-link {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1.05rem;
}

@media (max-width: 900px) {
    .site-nav-desktop {
        display: none;
    }
    
    .btn-mobile-toggle {
        display: flex;
    }
    
    .hero-card {
        padding: 2.5rem 1.5rem;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .article-content-card {
        padding: 2.25rem 1.5rem;
    }
    
    .media-player-drawer {
        bottom: 12px;
        right: 12px;
        left: 12px;
        width: auto;
    }
}

/* Volume Controller */
.audio-volume-wrap {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.5rem 0.75rem;
    background: rgba(0, 20, 35, 0.6);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
}

.btn-volume-icon {
    background: none;
    border: none;
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: transform var(--transition-fast), color var(--transition-fast);
}

.btn-volume-icon:hover {
    color: #ffffff;
    transform: scale(1.15);
}

.volume-slider {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 4px;
    background: rgba(0, 208, 255, 0.25);
    border-radius: var(--radius-full);
    outline: none;
    cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent);
    cursor: pointer;
    transition: transform var(--transition-fast);
}

.volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.25);
}

.volume-level-indicator {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-dim);
    min-width: 32px;
    text-align: right;
}
