/* ═══════════════════════════════════════════════════════════
   🌊 OCEANS EXPLORER - COMPLETE STYLESHEET
   Deep Ocean Aesthetic Theme
   ═══════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════
   CSS VARIABLES - OCEAN COLOR PALETTE
   ═══════════════════════════════════════════════════════════ */

:root {
    /* Primary Ocean Colors */
    --abyss-black: #020B16;
    --deep-ocean: #041C32;
    --ocean-dark: #04293A;
    --ocean-mid: #064663;
    --ocean-blue: #0B6E99;
    --ocean-surface: #1CA3D0;
    --water-light: #48CAE4;
    --foam-white: #CAF0F8;
    --wave-teal: #00B4D8;
    
    /* Current Colors */
    --current-warm: #FF6B6B;
    --current-cold: #48CAE4;
    
    /* Feature Colors */
    --trench-dark: #010810;
    --ridge-orange: #E67E22;
    --shipping-gold: #FFD700;
    
    /* Accent Colors */
    --accent-cyan: #00FFE5;
    --accent-bioluminescence: #7DF9FF;
    
    /* Text Colors */
    --text-light: #E0F7FF;
    --text-muted: rgba(224, 247, 255, 0.7);
    --text-dark: #041C32;
    
    /* Card Styling */
    --card-bg: rgba(0, 180, 216, 0.08);
    --card-border: rgba(0, 180, 216, 0.25);
    --card-hover-border: rgba(0, 255, 229, 0.6);
    
    /* Depth Zone Colors */
    --zone-sunlight: #48CAE4;
    --zone-twilight: #064663;
    --zone-midnight: #041C32;
    --zone-abyssal: #020B16;
    --zone-hadal: #010810;
    
    /* Ocean Specific Colors */
    --pacific-color: #0077B6;
    --atlantic-color: #00B4D8;
    --indian-color: #48CAE4;
    --southern-color: #90E0EF;
    --arctic-color: #CAF0F8;
    
    /* Gradients */
    --ocean-gradient: linear-gradient(180deg, #020B16 0%, #041C32 30%, #064663 70%, #0B6E99 100%);
    --surface-gradient: linear-gradient(180deg, #0B6E99 0%, #1CA3D0 50%, #48CAE4 100%);
    --deep-gradient: linear-gradient(180deg, #010810 0%, #020B16 50%, #041C32 100%);
    --wave-gradient: linear-gradient(90deg, #00B4D8, #00FFE5, #48CAE4, #00B4D8);
    
    /* Shadows */
    --glow-cyan: 0 0 30px rgba(0, 255, 229, 0.4);
    --glow-blue: 0 0 40px rgba(0, 180, 216, 0.3);
    --shadow-deep: 0 20px 60px rgba(0, 0, 0, 0.5);
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;
    --radius-full: 50%;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ═══════════════════════════════════════════════════════════
   KEYFRAME ANIMATIONS
   ═══════════════════════════════════════════════════════════ */

/* Gentle Ocean Waves */
@keyframes oceanWave {
    0%, 100% { 
        transform: translateX(0) translateY(0) scaleY(1); 
    }
    25% { 
        transform: translateX(-10px) translateY(-5px) scaleY(1.02); 
    }
    50% { 
        transform: translateX(0) translateY(-8px) scaleY(1); 
    }
    75% { 
        transform: translateX(10px) translateY(-3px) scaleY(0.98); 
    }
}

/* Rising Bubbles */
@keyframes bubbleRise {
    0% { 
        transform: translateY(100vh) translateX(0) scale(0.3); 
        opacity: 0;
    }
    10% { 
        opacity: 0.6; 
    }
    90% { 
        opacity: 0.4; 
    }
    100% { 
        transform: translateY(-20px) translateX(var(--wobble, 20px)) scale(1); 
        opacity: 0;
    }
}

/* Underwater Light Rays (Caustics) */
@keyframes lightCaustics {
    0% { 
        opacity: 0.05; 
        transform: translateY(-100%) rotate(15deg) scaleX(1); 
    }
    50% { 
        opacity: 0.15; 
        transform: translateY(50%) rotate(18deg) scaleX(1.2); 
    }
    100% { 
        opacity: 0.05; 
        transform: translateY(200%) rotate(20deg) scaleX(1); 
    }
}

/* Current Flow Lines */
@keyframes currentFlow {
    0% { 
        stroke-dashoffset: 100; 
        opacity: 0.3; 
    }
    50% { 
        opacity: 0.8; 
    }
    100% { 
        stroke-dashoffset: -100; 
        opacity: 0.3; 
    }
}

/* Floating Plankton/Particles */
@keyframes planktonFloat {
    0%, 100% { 
        transform: translate(0, 0); 
        opacity: 0.3; 
    }
    25% { 
        transform: translate(15px, -20px); 
        opacity: 0.6; 
    }
    50% { 
        transform: translate(-10px, -10px); 
        opacity: 0.4; 
    }
    75% { 
        transform: translate(8px, -25px); 
        opacity: 0.5; 
    }
}

/* Bioluminescence Glow */
@keyframes bioGlow {
    0%, 100% { 
        opacity: 0.1;
        transform: scale(0.8);
        filter: blur(2px); 
    }
    50% { 
        opacity: 0.8;
        transform: scale(1.2);
        filter: blur(0px); 
    }
}

/* Wave Gradient Animation */
@keyframes waveGradient {
    0% { background-position: 0% 0%; }
    100% { background-position: 200% 0%; }
}

/* Wave SVG Animation */
@keyframes waveSway {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(-50px); }
}

/* Title Wave Float */
@keyframes titleWave {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-5px) rotate(-5deg); }
    75% { transform: translateY(3px) rotate(5deg); }
}

/* Pulse Glow */
@keyframes pulseGlow {
    0%, 100% { 
        box-shadow: 0 0 20px rgba(0, 255, 229, 0.3);
    }
    50% { 
        box-shadow: 0 0 40px rgba(0, 255, 229, 0.6), 0 0 60px rgba(0, 180, 216, 0.3);
    }
}

/* Depth Dive */
@keyframes depthDive {
    0% { transform: translateY(0); }
    100% { transform: translateY(var(--depth-percent, 0%)); }
}

/* Sonar Waves */
@keyframes sonarWave {
    0% { 
        transform: scale(0.5);
        opacity: 1;
    }
    100% { 
        transform: scale(2);
        opacity: 0;
    }
}

/* Submarine Movement */
@keyframes submarineFloat {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50% { transform: translateY(-10px) rotate(2deg); }
}

/* Propeller Spin */
@keyframes propellerSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Loading Progress */
@keyframes loadingProgress {
    0% { width: 0%; }
    100% { width: 100%; }
}

/* Fade In Up */
@keyframes fadeInUp {
    0% { 
        opacity: 0;
        transform: translateY(30px);
    }
    100% { 
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fade In */
@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

/* Scale In */
@keyframes scaleIn {
    0% { 
        opacity: 0;
        transform: scale(0.8);
    }
    100% { 
        opacity: 1;
        transform: scale(1);
    }
}

/* Rotate Gyre */
@keyframes rotateGyre {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Flow Line Dash */
@keyframes flowDash {
    0% { stroke-dashoffset: 20; }
    100% { stroke-dashoffset: 0; }
}

/* Ticker Scroll */
@keyframes tickerScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Card Float */
@keyframes cardFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Diver Swim */
@keyframes diverSwim {
    0%, 100% { transform: translateX(0) rotate(-5deg); }
    50% { transform: translateX(10px) rotate(5deg); }
}

/* ═══════════════════════════════════════════════════════════
   BASE STYLES & RESET
   ═══════════════════════════════════════════════════════════ */

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

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

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

body.loaded {
    overflow-y: auto;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

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

ul, ol {
    list-style: none;
}

/* ═══════════════════════════════════════════════════════════
   LOADING SCREEN
   ═══════════════════════════════════════════════════════════ */

.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--deep-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loading-content {
    text-align: center;
    padding: var(--spacing-lg);
}

/* Diver Animation */
.diver-animation {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto var(--spacing-lg);
}

.diver {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: var(--accent-cyan);
    animation: diverSwim 2s ease-in-out infinite;
    filter: drop-shadow(0 0 20px var(--accent-cyan));
}

.dive-bubbles {
    position: absolute;
    width: 100%;
    height: 100%;
}

.dive-bubbles span {
    position: absolute;
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    animation: bubbleRise 3s ease-in-out infinite;
}

.dive-bubbles span:nth-child(1) { left: 30%; animation-delay: 0s; --wobble: 15px; }
.dive-bubbles span:nth-child(2) { left: 50%; animation-delay: 0.5s; --wobble: -10px; }
.dive-bubbles span:nth-child(3) { left: 70%; animation-delay: 1s; --wobble: 20px; }
.dive-bubbles span:nth-child(4) { left: 40%; animation-delay: 1.5s; --wobble: -15px; }
.dive-bubbles span:nth-child(5) { left: 60%; animation-delay: 2s; --wobble: 10px; }

/* Submarine Animation (Profile Page) */
.submarine-animation {
    position: relative;
    width: 200px;
    height: 120px;
    margin: 0 auto var(--spacing-lg);
}

.submarine {
    position: relative;
    animation: submarineFloat 3s ease-in-out infinite;
}

.submarine-body {
    width: 120px;
    height: 50px;
    background: linear-gradient(180deg, var(--ocean-blue), var(--ocean-dark));
    border-radius: 25px 60px 25px 25px;
    margin: 0 auto;
    position: relative;
    border: 2px solid var(--accent-cyan);
    box-shadow: 0 0 30px rgba(0, 255, 229, 0.3);
}

.submarine-body .window {
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--accent-cyan);
    border-radius: 50%;
    top: 50%;
    left: 25px;
    transform: translateY(-50%);
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.3);
}

.submarine-body .propeller {
    position: absolute;
    right: -15px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 30px;
    border: 3px solid var(--accent-cyan);
    border-radius: 50%;
    animation: propellerSpin 0.5s linear infinite;
}

.submarine-light {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 80px;
    height: 40px;
    background: linear-gradient(90deg, rgba(0, 255, 229, 0.4), transparent);
    clip-path: polygon(0 30%, 100% 0, 100% 100%, 0 70%);
}

.sonar-waves {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
}

.sonar-waves span {
    position: absolute;
    width: 40px;
    height: 40px;
    border: 2px solid var(--accent-cyan);
    border-radius: 50%;
    animation: sonarWave 2s ease-out infinite;
}

.sonar-waves span:nth-child(2) { animation-delay: 0.5s; }
.sonar-waves span:nth-child(3) { animation-delay: 1s; }

.loading-text {
    font-size: 1.5rem;
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
    font-weight: 300;
    letter-spacing: 2px;
}

.loading-bar {
    width: 250px;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    margin: 0 auto var(--spacing-md);
    overflow: hidden;
}

.loading-progress {
    height: 100%;
    background: var(--wave-gradient);
    background-size: 200% 100%;
    animation: waveGradient 2s linear infinite;
    border-radius: 3px;
    transition: width 0.1s ease;
}

.depth-counter {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-cyan);
    text-shadow: 0 0 20px var(--accent-cyan);
}

.depth-counter .depth-value {
    font-family: 'Courier New', monospace;
}

/* ═══════════════════════════════════════════════════════════
   BACKGROUND EFFECTS
   ═══════════════════════════════════════════════════════════ */

.ocean-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

/* Bubbles */
.bubbles-container {
    position: absolute;
    width: 100%;
    height: 100%;
}

.bubble {
    position: absolute;
    left: var(--left);
    bottom: -50px;
    width: var(--size);
    height: var(--size);
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.2));
    border-radius: 50%;
    animation: bubbleRise var(--duration) ease-in-out infinite;
    animation-delay: var(--delay);
    opacity: 0;
}

/* Caustics (Light Rays) */
.caustics-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
}

.caustic-ray {
    position: absolute;
    left: var(--left);
    top: 0;
    width: 150px;
    height: 200%;
    background: linear-gradient(180deg, 
        rgba(72, 202, 228, 0.15),
        rgba(0, 255, 229, 0.1),
        transparent
    );
    transform: rotate(15deg) skewX(-10deg);
    animation: lightCaustics 8s ease-in-out infinite;
    animation-delay: var(--delay);
    filter: blur(20px);
}

/* Plankton Particles */
.plankton-container {
    position: absolute;
    width: 100%;
    height: 100%;
}

.plankton {
    position: absolute;
    left: var(--left);
    top: var(--top);
    width: 4px;
    height: 4px;
    background: rgba(125, 249, 255, 0.6);
    border-radius: 50%;
    animation: planktonFloat var(--duration) ease-in-out infinite;
    animation-delay: var(--delay);
    filter: blur(1px);
}

.plankton[style*="--glow: 1"] {
    animation: bioGlow var(--duration) ease-in-out infinite;
    box-shadow: 0 0 10px var(--accent-bioluminescence);
}

/* Bioluminescence */
.bioluminescence-container {
    position: absolute;
    width: 100%;
    height: 100%;
}

.bioluminescence {
    position: absolute;
    left: var(--left);
    top: var(--top);
    width: var(--size);
    height: var(--size);
    background: var(--accent-bioluminescence);
    border-radius: 50%;
    animation: bioGlow var(--duration) ease-in-out infinite;
    animation-delay: var(--delay);
    box-shadow: 0 0 20px var(--accent-bioluminescence);
}

/* Wave Motion */
.wave-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 100%;
}

.wave-1 {
    animation: waveSway 10s ease-in-out infinite;
}

.wave-2 {
    animation: waveSway 8s ease-in-out infinite reverse;
    bottom: -20px;
}

.wave-3 {
    animation: waveSway 12s ease-in-out infinite;
    bottom: -40px;
}

/* ═══════════════════════════════════════════════════════════
   MAIN CONTAINER
   ═══════════════════════════════════════════════════════════ */

.main-container {
    position: relative;
    z-index: 1;
    max-width: 1600px;
    margin: 0 auto;
    padding: var(--spacing-lg);
    min-height: 100vh;
}

/* ═══════════════════════════════════════════════════════════
   HEADER STYLES
   ═══════════════════════════════════════════════════════════ */

.ocean-header {
    margin-bottom: var(--spacing-xl);
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--spacing-lg);
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.back-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(0, 180, 216, 0.15);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-full);
    color: var(--text-light);
    font-size: 1.2rem;
    transition: var(--transition-normal);
    backdrop-filter: blur(10px);
}

.back-button:hover {
    background: rgba(0, 255, 229, 0.2);
    border-color: var(--accent-cyan);
    transform: translateX(-5px);
    box-shadow: var(--glow-cyan);
}

.header-title {
    text-align: center;
    flex: 1;
}

.header-title h1 {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    text-shadow: 0 0 40px rgba(0, 180, 216, 0.5);
}

.title-wave {
    display: inline-block;
    animation: titleWave 3s ease-in-out infinite;
    font-size: 2.5rem;
}

.title-text {
    background: linear-gradient(135deg, var(--text-light), var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-top: var(--spacing-xs);
    font-weight: 300;
    letter-spacing: 1px;
}

.header-actions {
    display: flex;
    gap: var(--spacing-sm);
}

.theme-toggle {
    width: 50px;
    height: 50px;
    background: rgba(0, 180, 216, 0.15);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-full);
    color: var(--text-light);
    font-size: 1.2rem;
    transition: var(--transition-normal);
    backdrop-filter: blur(10px);
}

.theme-toggle:hover {
    background: rgba(0, 255, 229, 0.2);
    border-color: var(--accent-cyan);
    box-shadow: var(--glow-cyan);
}

/* Global Stats */
.global-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-lg);
    padding: var(--spacing-md) var(--spacing-lg);
    background: rgba(0, 180, 216, 0.1);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(15px);
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.stat-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--ocean-blue), var(--accent-cyan));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--text-light);
}

.stat-content {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-light);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--card-border);
}

/* ═══════════════════════════════════════════════════════════
   FILTER BAR
   ═══════════════════════════════════════════════════════════ */

.filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-md);
    background: rgba(0, 180, 216, 0.08);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-xl);
    flex-wrap: wrap;
    gap: var(--spacing-md);
    backdrop-filter: blur(10px);
}

.filter-group {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

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

.filter-buttons {
    display: flex;
    gap: var(--spacing-xs);
}

.filter-btn {
    padding: var(--spacing-xs) var(--spacing-md);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: var(--transition-normal);
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.filter-btn:hover {
    background: rgba(0, 180, 216, 0.15);
    color: var(--text-light);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--ocean-blue), var(--wave-teal));
    color: var(--text-light);
    border-color: var(--accent-cyan);
    box-shadow: 0 0 20px rgba(0, 180, 216, 0.3);
}

.compare-toggle {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

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

/* Toggle Switch */
.toggle-switch {
    position: relative;
    width: 50px;
    height: 26px;
    display: inline-block;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--card-border);
    border-radius: 26px;
    transition: var(--transition-normal);
}

.toggle-slider::before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 2px;
    bottom: 2px;
    background: var(--text-muted);
    border-radius: 50%;
    transition: var(--transition-normal);
}

.toggle-switch input:checked + .toggle-slider {
    background: linear-gradient(135deg, var(--ocean-blue), var(--accent-cyan));
    border-color: var(--accent-cyan);
}

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(24px);
    background: var(--text-light);
}

.toggle-switch.small {
    width: 40px;
    height: 22px;
}

.toggle-switch.small .toggle-slider::before {
    height: 16px;
    width: 16px;
}

.toggle-switch.small input:checked + .toggle-slider::before {
    transform: translateX(18px);
}

/* ═══════════════════════════════════════════════════════════
   OCEANS SECTION
   ═══════════════════════════════════════════════════════════ */

.oceans-section {
    margin-bottom: var(--spacing-xl);
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.section-header h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-xs);
}

.section-icon {
    font-size: 1.8rem;
}

.section-description {
    color: var(--text-muted);
    font-size: 1rem;
}

/* Ocean Cards Grid */
.oceans-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--spacing-xl);
    padding: var(--spacing-lg) 0;
}

/* Ocean Card */
.ocean-card {
    position: relative;
    width: 260px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-xl);
    padding: var(--spacing-md);
    text-align: center;
    transition: var(--transition-slow);
    cursor: pointer;
    overflow: hidden;
    backdrop-filter: blur(15px);
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: var(--delay, 0s);
    opacity: 0;
}

.ocean-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 0%, rgba(0, 255, 229, 0.1), transparent 70%);
    opacity: 0;
    transition: var(--transition-normal);
}

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

.ocean-card:hover {
    transform: translateY(-15px);
    border-color: var(--accent-cyan);
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.4),
        0 0 50px rgba(0, 255, 229, 0.2),
        0 0 100px rgba(0, 180, 216, 0.15);
}

.card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 255, 229, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: var(--transition-slow);
    pointer-events: none;
}

.ocean-card:hover .card-glow {
    opacity: 1;
}

/* Card Rank */
.card-rank {
    position: absolute;
    top: var(--spacing-sm);
    left: var(--spacing-sm);
    background: linear-gradient(135deg, var(--ocean-blue), var(--accent-cyan));
    padding: 4px 12px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 5;
}

.rank-number {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-light);
}

.rank-label {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Ocean Image Container */
.ocean-image-container {
    position: relative;
    width: 180px;
    height: 180px;
    margin: var(--spacing-md) auto;
    border-radius: var(--radius-full);
    overflow: hidden;
    border: 3px solid var(--card-border);
    transition: var(--transition-slow);
}

.ocean-card:hover .ocean-image-container {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 30px rgba(0, 255, 229, 0.4);
}

.ocean-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.ocean-card:hover .ocean-image {
    transform: scale(1.15);
    filter: brightness(1.1) saturate(1.2);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 50%, rgba(2, 11, 22, 0.6) 100%);
    pointer-events: none;
}

.wave-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30px;
    opacity: 0.6;
}

.wave-overlay svg {
    width: 100%;
    height: 100%;
}

.wave-path {
    fill: var(--accent-cyan);
    animation: oceanWave 3s ease-in-out infinite;
}

/* Depth Indicator */
.depth-indicator {
    position: absolute;
    right: -15px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 120px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    overflow: hidden;
    z-index: 10;
}

.depth-fill {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(180deg, var(--zone-sunlight), var(--zone-twilight), var(--zone-midnight), var(--zone-abyssal));
    border-radius: 4px;
    transition: height 0.5s ease;
}

.depth-markers {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.depth-markers .marker {
    font-size: 0.5rem;
    color: transparent;
    position: absolute;
    right: 12px;
    top: var(--pos);
    transform: translateY(-50%);
    white-space: nowrap;
    transition: var(--transition-normal);
}

.ocean-card:hover .depth-markers .marker {
    color: var(--text-muted);
}

/* Ocean Info */
.ocean-info {
    padding: var(--spacing-sm) 0;
}

.ocean-name {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: var(--spacing-xs);
}

.ocean-stats-mini {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
}

.mini-stat {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.mini-stat i {
    color: var(--accent-cyan);
    font-size: 0.75rem;
}

.mini-stat-value {
    color: var(--text-light);
    font-weight: 600;
}

.deepest-point {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-xs);
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-xs);
    font-size: 0.8rem;
}

.deepest-icon {
    font-size: 1rem;
}

.deepest-name {
    color: var(--text-muted);
    max-width: 120px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.deepest-depth {
    color: var(--current-cold);
    font-weight: 600;
}

.continents-count {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.continents-count i {
    color: var(--wave-teal);
}

.continents-value {
    color: var(--text-light);
    font-weight: 600;
}

/* Card Actions */
.card-actions {
    margin-top: var(--spacing-md);
}

.explore-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-lg);
    background: linear-gradient(135deg, var(--ocean-blue), var(--wave-teal));
    border-radius: var(--radius-lg);
    color: var(--text-light);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition-normal);
    border: 1px solid transparent;
}

.explore-btn:hover {
    background: linear-gradient(135deg, var(--wave-teal), var(--accent-cyan));
    border-color: var(--accent-cyan);
    box-shadow: 0 0 25px rgba(0, 255, 229, 0.4);
    transform: scale(1.05);
}

.explore-btn i {
    transition: var(--transition-normal);
}

.explore-btn:hover i {
    transform: translateX(5px);
}

/* Card Wave Border */
.card-wave-border {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--wave-gradient);
    background-size: 200% 100%;
    animation: waveGradient 3s linear infinite;
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}

/* ═══════════════════════════════════════════════════════════
   COMPARISON CHART
   ═══════════════════════════════════════════════════════════ */

.comparison-chart {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    margin-top: var(--spacing-xl);
    display: none;
    backdrop-filter: blur(15px);
}

.comparison-chart.active {
    display: block;
    animation: fadeInUp 0.5s ease;
}

.comparison-chart h3 {
    color: var(--text-light);
    font-size: 1.2rem;
    margin-bottom: var(--spacing-lg);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.chart-container {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.chart-row {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.chart-label {
    width: 150px;
    color: var(--text-muted);
    font-size: 0.9rem;
    flex-shrink: 0;
}

.chart-bars {
    flex: 1;
    display: flex;
    align-items: flex-end;
    gap: var(--spacing-sm);
    height: 50px;
}

.chart-bar {
    flex: 1;
    background: linear-gradient(180deg, var(--ocean-surface), var(--ocean-blue));
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    position: relative;
    transition: var(--transition-normal);
    min-height: 10px;
}

.chart-bar:hover {
    filter: brightness(1.2);
}

.chart-bar::after {
    content: attr(data-value);
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    color: var(--text-light);
    white-space: nowrap;
    opacity: 0;
    transition: var(--transition-normal);
}

.chart-bar:hover::after {
    opacity: 1;
}

.chart-bar-label {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    color: var(--text-muted);
    white-space: nowrap;
}
/* ═══════════════════════════════════════════════════════════
   SEAS SECTION
   ═══════════════════════════════════════════════════════════ */

.seas-section {
    margin-bottom: var(--spacing-xl);
    padding-top: var(--spacing-xl);
    border-top: 1px solid var(--card-border);
}

.seas-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
}

.sea-filter-btn {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-xs) var(--spacing-md);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: var(--transition-normal);
}

.sea-filter-btn:hover {
    background: rgba(0, 180, 216, 0.15);
    color: var(--text-light);
}

.sea-filter-btn.active {
    background: linear-gradient(135deg, var(--ocean-blue), var(--wave-teal));
    color: var(--text-light);
    border-color: var(--accent-cyan);
}

.ocean-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.ocean-dot.pacific { background: var(--pacific-color); }
.ocean-dot.atlantic { background: var(--atlantic-color); }
.ocean-dot.indian { background: var(--indian-color); }
.ocean-dot.southern { background: var(--southern-color); }
.ocean-dot.arctic { background: var(--arctic-color); }

/* Seas Grid */
.seas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

/* Sea Card */
.sea-card {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    transition: var(--transition-normal);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.sea-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 229, 0.1), transparent);
    transition: left 0.5s ease;
}

.sea-card:hover::before {
    left: 100%;
}

.sea-card:hover {
    background: rgba(0, 180, 216, 0.15);
    border-color: var(--wave-teal);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.sea-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--ocean-mid), var(--ocean-blue));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--accent-cyan);
    flex-shrink: 0;
}

.sea-info {
    flex: 1;
    min-width: 0;
}

.sea-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sea-details {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.sea-ocean {
    display: flex;
    align-items: center;
    gap: 4px;
}

.ocean-color-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.sea-hover-info {
    position: absolute;
    right: var(--spacing-sm);
    opacity: 0;
    transition: var(--transition-normal);
}

.sea-card:hover .sea-hover-info {
    opacity: 1;
}

.sea-coordinates {
    font-size: 0.75rem;
    color: var(--accent-cyan);
}

/* Seas Stats */
.seas-stats {
    display: flex;
    justify-content: center;
    gap: var(--spacing-xl);
    padding: var(--spacing-md);
    background: rgba(0, 180, 216, 0.1);
    border-radius: var(--radius-lg);
}

.sea-stat {
    text-align: center;
}

.sea-stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-cyan);
}

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

/* ═══════════════════════════════════════════════════════════
   FACTS TICKER
   ═══════════════════════════════════════════════════════════ */

.facts-ticker {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md) var(--spacing-lg);
    background: rgba(0, 180, 216, 0.1);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-xl);
    overflow: hidden;
}

.ticker-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.ticker-content {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.ticker-track {
    display: flex;
    gap: var(--spacing-xl);
    animation: tickerScroll 60s linear infinite;
    white-space: nowrap;
}

.ticker-track:hover {
    animation-play-state: paused;
}

.ticker-item {
    color: var(--text-light);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.ticker-item::before {
    content: '🌊';
}

/* ═══════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════ */

.ocean-footer {
    margin-top: auto;
    padding: var(--spacing-xl) 0;
    border-top: 1px solid var(--card-border);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-lg);
}

.footer-section h4 {
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: var(--spacing-sm);
}

.footer-section p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.footer-link {
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: var(--transition-normal);
}

.footer-link:hover {
    color: var(--accent-cyan);
    transform: translateX(5px);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.footer-note {
    font-size: 0.8rem !important;
    margin-top: var(--spacing-xs);
    opacity: 0.7;
}

/* ═══════════════════════════════════════════════════════════
   PROFILE PAGE STYLES
   ═══════════════════════════════════════════════════════════ */

.profile-page {
    background: var(--abyss-black);
}

.profile-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.profile-background .background-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: brightness(0.4) saturate(1.3);
}

.profile-background .background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        rgba(2, 11, 22, 0.7) 0%,
        rgba(4, 28, 50, 0.6) 30%,
        rgba(4, 41, 58, 0.7) 60%,
        rgba(1, 8, 16, 0.9) 100%
    );
}

.profile-container {
    position: relative;
    z-index: 1;
    max-width: 1800px;
    margin: 0 auto;
    padding: var(--spacing-md);
    min-height: 100vh;
}

/* Profile Header */
.profile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-md) 0;
    margin-bottom: var(--spacing-md);
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.header-left .back-button {
    width: auto;
    padding: 0 var(--spacing-md);
    gap: var(--spacing-sm);
}

.header-left .back-button span {
    font-size: 0.9rem;
}

.header-center {
    text-align: center;
    flex: 1;
}

.ocean-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    text-shadow: 0 0 50px rgba(0, 180, 216, 0.5);
}

.ocean-title .title-icon {
    font-size: 2rem;
    animation: titleWave 3s ease-in-out infinite;
}

.ocean-subtitle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-xs);
    flex-wrap: wrap;
}

.subtitle-stat {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.subtitle-stat i {
    color: var(--accent-cyan);
    font-size: 0.85rem;
}

.subtitle-divider {
    color: var(--card-border);
}

.header-right {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.mode-toggles {
    display: flex;
    gap: var(--spacing-md);
}

.mode-toggle {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-xs) var(--spacing-sm);
    background: rgba(0, 180, 216, 0.1);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
}

.toggle-icon {
    font-size: 1rem;
}

.toggle-text {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.fullscreen-btn {
    width: 45px;
    height: 45px;
    background: rgba(0, 180, 216, 0.15);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    color: var(--text-light);
    font-size: 1rem;
    transition: var(--transition-normal);
}

.fullscreen-btn:hover {
    background: rgba(0, 255, 229, 0.2);
    border-color: var(--accent-cyan);
}

/* Action Buttons */
.action-buttons {
    display: flex;
    justify-content: center;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    flex-wrap: wrap;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-xl);
    background: linear-gradient(135deg, rgba(0, 180, 216, 0.2), rgba(0, 255, 229, 0.1));
    border: 2px solid var(--card-border);
    border-radius: var(--radius-lg);
    color: var(--text-light);
    font-size: 1.1rem;
    font-weight: 600;
    transition: var(--transition-slow);
    position: relative;
    overflow: hidden;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

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

.action-btn:hover {
    background: linear-gradient(135deg, var(--ocean-blue), var(--wave-teal));
    border-color: var(--accent-cyan);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 180, 216, 0.3), var(--glow-cyan);
}

.btn-icon {
    font-size: 1.5rem;
}

.btn-arrow {
    opacity: 0;
    transform: translateX(-10px);
    transition: var(--transition-normal);
}

.action-btn:hover .btn-arrow {
    opacity: 1;
    transform: translateX(0);
}

.action-btn.currents-btn:hover {
    background: linear-gradient(135deg, var(--current-warm), var(--wave-teal));
}

.action-btn.dive-btn:hover {
    background: linear-gradient(135deg, var(--ocean-dark), var(--zone-midnight));
}

/* Profile Content Grid */
.profile-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

/* ═══════════════════════════════════════════════════════════
   MAP SECTION
   ═══════════════════════════════════════════════════════════ */

.map-section {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    backdrop-filter: blur(15px);
}

.map-container {
    position: relative;
    height: 600px;
}

.ocean-map {
    width: 100%;
    height: 100%;
    background: var(--deep-ocean);
}

/* Leaflet Map Customization */
.leaflet-container {
    background: var(--deep-ocean);
    font-family: var(--font-primary);
}

.leaflet-tile-pane {
    filter: brightness(0.7) saturate(1.2) hue-rotate(10deg);
}

.leaflet-popup-content-wrapper {
    background: var(--deep-ocean);
    border: 1px solid var(--card-border);
    color: var(--text-light);
    border-radius: var(--radius-md);
}

.leaflet-popup-tip {
    background: var(--deep-ocean);
}

.leaflet-popup-content {
    margin: var(--spacing-sm);
}

/* Map Controls */
.map-controls {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    z-index: 1000;
}

.map-control-btn {
    width: 40px;
    height: 40px;
    background: var(--deep-ocean);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-sm);
    color: var(--text-light);
    font-size: 1rem;
    transition: var(--transition-normal);
}

.map-control-btn:hover {
    background: var(--ocean-mid);
    border-color: var(--accent-cyan);
}

/* Map Layers Panel */
.map-layers-panel {
    position: absolute;
    top: var(--spacing-md);
    left: var(--spacing-md);
    background: rgba(4, 28, 50, 0.95);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: var(--spacing-sm);
    z-index: 1000;
    min-width: 180px;
    backdrop-filter: blur(10px);
}

.layers-title {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: var(--spacing-sm);
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding-bottom: var(--spacing-xs);
    border-bottom: 1px solid var(--card-border);
}

.layer-toggles {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.layer-toggle {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: 4px var(--spacing-xs);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-normal);
    font-size: 0.85rem;
}

.layer-toggle:hover {
    background: rgba(0, 180, 216, 0.1);
}

.layer-toggle input {
    accent-color: var(--accent-cyan);
}

.layer-icon {
    font-size: 0.9rem;
}

.layer-name {
    color: var(--text-muted);
}

.layer-toggle input:checked + .layer-icon + .layer-name {
    color: var(--text-light);
}

/* Map Legend */
.map-legend {
    position: absolute;
    bottom: var(--spacing-md);
    left: var(--spacing-md);
    background: rgba(4, 28, 50, 0.95);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: var(--spacing-sm);
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.legend-title {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: var(--spacing-xs);
}

.legend-items {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.legend-color {
    width: 20px;
    height: 4px;
    border-radius: 2px;
}

.legend-color.warm-current {
    background: var(--current-warm);
}

.legend-color.cold-current {
    background: var(--current-cold);
}

.legend-color.ridge {
    background: var(--ridge-orange);
}

.legend-color.trench {
    background: var(--trench-dark);
    border: 1px solid var(--ocean-mid);
}

.legend-color.shipping {
    background: var(--shipping-gold);
    height: 2px;
    border-style: dashed;
}

.legend-icon {
    font-size: 0.9rem;
}

/* Current Flow Indicator */
.current-flow-indicator {
    position: absolute;
    bottom: var(--spacing-md);
    right: var(--spacing-md);
    background: rgba(4, 28, 50, 0.95);
    border: 1px solid var(--accent-cyan);
    border-radius: var(--radius-md);
    padding: var(--spacing-xs) var(--spacing-sm);
    z-index: 1000;
    display: none;
    align-items: center;
    gap: var(--spacing-sm);
}

.current-flow-indicator.active {
    display: flex;
}

.flow-animation {
    display: flex;
    gap: 4px;
}

.flow-line {
    width: 20px;
    height: 3px;
    background: linear-gradient(90deg, var(--current-warm), var(--current-cold));
    border-radius: 2px;
    animation: currentFlow 1.5s linear infinite;
}

.flow-line:nth-child(2) { animation-delay: 0.3s; }
.flow-line:nth-child(3) { animation-delay: 0.6s; }

.flow-text {
    font-size: 0.8rem;
    color: var(--accent-cyan);
}

/* ═══════════════════════════════════════════════════════════
   INFO SECTION & MIND MAP
   ═══════════════════════════════════════════════════════════ */

.info-section {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.mind-map-container {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    backdrop-filter: blur(15px);
    max-height: 600px;
    overflow-y: auto;
}

.mind-map-container::-webkit-scrollbar {
    width: 6px;
}

.mind-map-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.mind-map-container::-webkit-scrollbar-thumb {
    background: var(--ocean-blue);
    border-radius: 3px;
}

.section-title {
    font-size: 1.3rem;
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.section-title i {
    color: var(--accent-cyan);
}

/* Tree Nodes */
.mind-map-tree {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.tree-node {
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition-normal);
}

.tree-node:hover {
    border-color: var(--wave-teal);
}

.tree-node.expanded {
    border-color: var(--accent-cyan);
}

.node-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    background: rgba(0, 180, 216, 0.1);
    cursor: pointer;
    transition: var(--transition-normal);
}

.node-header:hover {
    background: rgba(0, 180, 216, 0.2);
}

.node-icon {
    font-size: 1.2rem;
}

.node-title {
    flex: 1;
    font-weight: 600;
    color: var(--text-light);
}

.node-toggle {
    color: var(--text-muted);
    transition: var(--transition-normal);
}

.tree-node.expanded .node-toggle {
    transform: rotate(180deg);
}

.node-content {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.tree-node.expanded .node-content {
    padding: var(--spacing-md);
    max-height: 500px;
    overflow-y: auto;
}

/* Data Grid */
.data-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--spacing-sm);
}

.data-item {
    background: rgba(0, 0, 0, 0.2);
    padding: var(--spacing-sm);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--accent-cyan);
}

.data-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.data-value {
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 600;
}

/* Seas List */
.seas-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: var(--spacing-xs);
}

.seas-list-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-xs);
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: var(--text-light);
}

.seas-list-item::before {
    content: '🌊';
    font-size: 0.8rem;
}

/* Currents Data */
.currents-data {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.currents-group {
    margin-bottom: var(--spacing-sm);
}

.currents-group-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: var(--spacing-xs);
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.currents-group-title.warm { color: var(--current-warm); }
.currents-group-title.cold { color: var(--current-cold); }

.current-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-xs);
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-sm);
    margin-bottom: 4px;
    font-size: 0.85rem;
}

.current-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.current-dot.warm { background: var(--current-warm); }
.current-dot.cold { background: var(--current-cold); }

/* General Data Lists */
.tectonic-data,
.marine-data,
.climate-data,
.economic-data,
.environmental-data,
.exploration-data,
.geopolitics-data {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.info-item {
    display: flex;
    flex-direction: column;
    padding: var(--spacing-sm);
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--wave-teal);
}

.info-item-label {
    font-size: 0.8rem;
    color: var(--accent-cyan);
    font-weight: 600;
    margin-bottom: 2px;
}

.info-item-value {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* ═══════════════════════════════════════════════════════════
   FUN FACTS SECTION
   ═══════════════════════════════════════════════════════════ */

.fun-facts-section {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    backdrop-filter: blur(15px);
}

.facts-title {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.facts-title i {
    color: #FFD700;
}

.facts-carousel {
    position: relative;
    min-height: 80px;
    overflow: hidden;
}

.fact-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: var(--spacing-md);
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--accent-cyan);
    opacity: 0;
    transform: translateX(50px);
    transition: var(--transition-slow);
}

.fact-card.active {
    opacity: 1;
    transform: translateX(0);
}

.fact-card p {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.6;
}

.facts-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.fact-nav-btn {
    width: 35px;
    height: 35px;
    background: rgba(0, 180, 216, 0.2);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-full);
    color: var(--text-light);
    transition: var(--transition-normal);
}

.fact-nav-btn:hover {
    background: var(--ocean-blue);
    border-color: var(--accent-cyan);
}

.facts-dots {
    display: flex;
    gap: var(--spacing-xs);
}

.fact-dot {
    width: 8px;
    height: 8px;
    background: var(--card-border);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition-normal);
}

.fact-dot.active {
    background: var(--accent-cyan);
    transform: scale(1.3);
}

/* ═══════════════════════════════════════════════════════════
   QUICK FACTS PANEL
   ═══════════════════════════════════════════════════════════ */

.quick-facts-panel {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(4, 28, 50, 0.98);
    border: 1px solid var(--card-border);
    border-bottom: none;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    padding: var(--spacing-md) var(--spacing-xl);
    display: flex;
    align-items: center;
    gap: var(--spacing-xl);
    z-index: 100;
    backdrop-filter: blur(20px);
    transition: var(--transition-slow);
}

.quick-facts-panel.collapsed {
    transform: translateX(-50%) translateY(calc(100% - 40px));
}

.quick-fact {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.qf-icon {
    font-size: 1.2rem;
    margin-bottom: 2px;
}

.qf-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.qf-value {
    font-size: 1rem;
    color: var(--accent-cyan);
    font-weight: 600;
}

.qf-toggle {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 25px;
    background: var(--deep-ocean);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    color: var(--text-light);
    font-size: 0.8rem;
}

.quick-facts-panel.collapsed .qf-toggle i {
    transform: rotate(180deg);
}

/* ═══════════════════════════════════════════════════════════
   OCEAN NAVIGATION
   ═══════════════════════════════════════════════════════════ */

.ocean-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-lg);
    padding: var(--spacing-md) 0;
    margin-bottom: 60px;
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    background: rgba(0, 180, 216, 0.15);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    color: var(--text-light);
    transition: var(--transition-normal);
}

.nav-btn:hover {
    background: var(--ocean-blue);
    border-color: var(--accent-cyan);
    transform: scale(1.05);
}

.nav-label {
    font-size: 0.9rem;
}

.nav-dots {
    display: flex;
    gap: var(--spacing-sm);
}

.nav-dot {
    width: 12px;
    height: 12px;
    background: var(--card-border);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition-normal);
}

.nav-dot:hover {
    background: var(--ocean-blue);
}

.nav-dot.active {
    background: var(--accent-cyan);
    box-shadow: 0 0 15px var(--accent-cyan);
    transform: scale(1.2);
}

/* ═══════════════════════════════════════════════════════════
   DIVE OVERLAY
   ═══════════════════════════════════════════════════════════ */

.dive-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
}

.dive-overlay.active {
    display: flex;
}

.dive-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--zone-sunlight);
    transition: background 1s ease;
}

.dive-content {
    position: relative;
    z-index: 1;
    width: 90%;
    max-width: 1000px;
    padding: var(--spacing-lg);
}

.dive-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-lg);
    position: relative;
}

.dive-close {
    position: absolute;
    left: 0;
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-full);
    color: var(--text-light);
    font-size: 1.2rem;
    transition: var(--transition-normal);
}

.dive-close:hover {
    background: rgba(255, 107, 107, 0.5);
}

.dive-title {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--text-light);
    text-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.dive-visualization {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

/* Depth Column */
.depth-column {
    display: flex;
    justify-content: center;
}

.depth-meter {
    position: relative;
    width: 60px;
    height: 450px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

#diveDepthFill {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: linear-gradient(
        180deg,
        var(--zone-sunlight) 0%,
        var(--zone-twilight) 22%,
        var(--zone-midnight) 67%,
        var(--zone-abyssal) 89%,
        var(--zone-hadal) 100%
    );
    transition: height 1s ease;
}

.depth-zones {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.depth-zones .zone {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.5;
    transition: var(--transition-normal);
}

.depth-zones .zone.active {
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
}

.zone-label {
    font-size: 0.5rem;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

.zone-depth {
    font-size: 0.4rem;
    color: rgba(255, 255, 255, 0.7);
    writing-mode: vertical-rl;
}

#diverIcon {
    position: absolute;
    left: 50%;
    top: 0%;
    transform: translate(-50%, -50%);
    font-size: 1.5rem;
    color: var(--accent-cyan);
    filter: drop-shadow(0 0 10px var(--accent-cyan));
    transition: top 1s ease;
    z-index: 10;
}

/* Dive Info Panel */
.dive-info-panel {
    background: rgba(0, 0, 0, 0.4);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dive-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.dive-stat {
    text-align: center;
    padding: var(--spacing-sm);
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--radius-md);
}

.dive-stat-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 4px;
}

.dive-stat-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-cyan);
}

#zoneInfo {
    margin-bottom: var(--spacing-lg);
}

#zoneInfo .zone-name {
    font-size: 1.3rem;
    color: var(--text-light);
    margin-bottom: var(--spacing-xs);
}

#zoneInfo .zone-description {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: var(--spacing-md);
}

.zone-creatures h4 {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: var(--spacing-xs);
}

.creatures-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
}

.creature {
    padding: 4px var(--spacing-sm);
    background: rgba(0, 180, 216, 0.2);
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    color: var(--text-light);
}

.dive-controls {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
}

.dive-btn {
    padding: var(--spacing-sm) var(--spacing-lg);
    background: rgba(0, 180, 216, 0.3);
    border: 1px solid var(--accent-cyan);
    border-radius: var(--radius-md);
    color: var(--text-light);
    font-size: 0.95rem;
    font-weight: 600;
    transition: var(--transition-normal);
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.dive-btn:hover {
    background: var(--ocean-blue);
    transform: scale(1.05);
}

.dive-btn.auto {
    background: linear-gradient(135deg, var(--wave-teal), var(--accent-cyan));
}

.dive-trench-info {
    display: none;
    text-align: center;
    padding: var(--spacing-lg);
    margin-top: var(--spacing-lg);
    background: rgba(0, 0, 0, 0.5);
    border-radius: var(--radius-lg);
    border: 2px solid var(--accent-cyan);
    animation: pulseGlow 2s infinite;
}

.dive-trench-info.active {
    display: block;
}

.trench-reached {
    animation: scaleIn 0.5s ease;
}

.trench-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: var(--spacing-sm);
}

.trench-name {
    font-size: 1.5rem;
    color: var(--accent-cyan);
    margin-bottom: var(--spacing-xs);
}

.trench-depth {
    font-size: 1.2rem;
    color: var(--text-light);
}

.trench-fact {
    color: var(--text-muted);
    margin-top: var(--spacing-xs);
}

/* ═══════════════════════════════════════════════════════════
   CURRENTS OVERLAY
   ═══════════════════════════════════════════════════════════ */

.currents-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(2, 11, 22, 0.95);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
}

.currents-overlay.active {
    display: flex;
}

.currents-content {
    width: 90%;
    max-width: 800px;
    padding: var(--spacing-xl);
}

.currents-header {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: var(--spacing-xl);
}

.currents-close {
    position: absolute;
    left: 0;
    width: 50px;
    height: 50px;
    background: rgba(0, 180, 216, 0.2);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-full);
    color: var(--text-light);
    font-size: 1.2rem;
    transition: var(--transition-normal);
}

.currents-close:hover {
    background: rgba(255, 107, 107, 0.5);
}

.currents-title {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.currents-title i {
    color: var(--accent-cyan);
}

/* Journey Progress */
.journey-progress {
    position: relative;
    margin-bottom: var(--spacing-xl);
}

.progress-track {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

#currentProgressFill {
    height: 100%;
    background: var(--wave-gradient);
    background-size: 200% 100%;
    animation: waveGradient 2s linear infinite;
    width: 0%;
    transition: width 0.5s ease;
}

.progress-waypoints {
    display: flex;
    justify-content: space-between;
    margin-top: var(--spacing-sm);
    position: relative;
}

.waypoint {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-normal);
}

.waypoint-dot {
    width: 16px;
    height: 16px;
    background: var(--card-border);
    border-radius: 50%;
    border: 2px solid var(--deep-ocean);
    margin-bottom: 4px;
    transition: var(--transition-normal);
}

.waypoint.active .waypoint-dot,
.waypoint.completed .waypoint-dot {
    background: var(--accent-cyan);
    box-shadow: 0 0 15px var(--accent-cyan);
}

.waypoint-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    max-width: 80px;
}

.waypoint.active .waypoint-label {
    color: var(--text-light);
}

/* Current Info Card */
.current-info-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    backdrop-filter: blur(15px);
}

.current-type {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: 4px var(--spacing-sm);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-sm);
}

.current-type.warm {
    background: rgba(255, 107, 107, 0.2);
}

.current-type.cold {
    background: rgba(72, 202, 228, 0.2);
}

.type-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.current-type.warm .type-indicator {
    background: var(--current-warm);
}

.current-type.cold .type-indicator {
    background: var(--current-cold);
}

.type-label {
    font-size: 0.8rem;
    font-weight: 600;
}

.current-type.warm .type-label { color: var(--current-warm); }
.current-type.cold .type-label { color: var(--current-cold); }

#currentName {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--text-light);
    margin-bottom: var(--spacing-xs);
}

#currentDescription {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: var(--spacing-md);
}

.current-stats {
    display: flex;
    gap: var(--spacing-lg);
}

.current-stat {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.current-stat i {
    color: var(--accent-cyan);
}

/* Journey Controls */
.journey-controls {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
}

.journey-btn {
    width: 50px;
    height: 50px;
    background: rgba(0, 180, 216, 0.2);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-full);
    color: var(--text-light);
    font-size: 1rem;
    transition: var(--transition-normal);
}

.journey-btn:hover:not(:disabled) {
    background: var(--ocean-blue);
    border-color: var(--accent-cyan);
}

.journey-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.journey-btn.play {
    width: 70px;
    height: 70px;
    font-size: 1.5rem;
    background: linear-gradient(135deg, var(--ocean-blue), var(--accent-cyan));
}

.journey-btn.skip {
    width: auto;
    padding: 0 var(--spacing-md);
    border-radius: var(--radius-md);
}

/* Gyre Complete */
.gyre-complete {
    display: none;
    text-align: center;
    padding: var(--spacing-xl);
}

.gyre-complete.active {
    display: block;
    animation: scaleIn 0.5s ease;
}

.complete-animation {
    padding: var(--spacing-lg);
    background: rgba(0, 255, 229, 0.1);
    border: 2px solid var(--accent-cyan);
    border-radius: var(--radius-xl);
    animation: pulseGlow 2s infinite;
}

.gyre-icon {
    font-size: 4rem;
    display: block;
    margin-bottom: var(--spacing-md);
    animation: rotateGyre 3s linear infinite;
}

.gyre-complete h3 {
    font-size: 1.5rem;
    color: var(--accent-cyan);
    margin-bottom: var(--spacing-xs);
}

#gyreCompleteName {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: var(--spacing-sm);
}

.gyre-fact {
    color: var(--text-muted);
    margin-bottom: var(--spacing-lg);
}

.journey-restart {
    padding: var(--spacing-sm) var(--spacing-lg);
    background: linear-gradient(135deg, var(--ocean-blue), var(--wave-teal));
    border: none;
    border-radius: var(--radius-md);
    color: var(--text-light);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
}

.journey-restart:hover {
    transform: scale(1.05);
    box-shadow: var(--glow-cyan);
}

/* ═══════════════════════════════════════════════════════════
   DEPTH VIEW OVERLAY
   ═══════════════════════════════════════════════════════════ */

.depth-view-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1500;
    display: none;
    align-items: center;
    justify-content: center;
}

.depth-view-overlay.active {
    display: flex;
}

.depth-view-content {
    width: 90%;
    max-width: 400px;
}

.depth-column-visual {
    display: flex;
    flex-direction: column;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 2px solid var(--card-border);
}

.dv-zone {
    padding: var(--spacing-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-normal);
}

.dv-zone.sunlight { background: var(--zone-sunlight); }
.dv-zone.twilight { background: var(--zone-twilight); }
.dv-zone.midnight { background: var(--zone-midnight); }
.dv-zone.abyssal { background: var(--zone-abyssal); }
.dv-zone.hadal { background: var(--zone-hadal); flex-direction: column; }

.dv-zone-info h4 {
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 2px;
}

.dv-zone-info p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
}

.dv-creatures {
    font-size: 1.5rem;
    letter-spacing: 4px;
}

.dv-trench {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: var(--spacing-md);
}

.trench-marker {
    font-size: 2rem;
    margin-bottom: var(--spacing-xs);
}

.dv-trench .trench-name {
    color: var(--current-cold);
    font-weight: 600;
}

.dv-trench .trench-depth {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE DESIGN
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 1200px) {
    .profile-content {
        grid-template-columns: 1fr;
    }
    
    .map-container {
        height: 500px;
    }
    
    .oceans-grid {
        gap: var(--spacing-lg);
    }
    
    .ocean-card {
        width: 220px;
    }
    
    .ocean-image-container {
        width: 150px;
        height: 150px;
    }
}

@media (max-width: 992px) {
    .header-title h1 {
        font-size: 2.2rem;
    }
    
    .global-stats {
        gap: var(--spacing-md);
        padding: var(--spacing-sm);
    }
    
    .stat-divider {
        display: none;
    }
    
    .oceans-grid {
        justify-content: center;
    }
    
    .mode-toggles {
        flex-direction: column;
        gap: var(--spacing-xs);
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .action-btn {
        width: 100%;
        max-width: 350px;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .main-container {
        padding: var(--spacing-md);
    }
    
    .header-title h1 {
        font-size: 1.8rem;
    }
    
    .title-wave {
        font-size: 1.5rem;
    }
    
    .global-stats {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .stat-item {
        flex: 0 0 45%;
    }
    
    .filter-bar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .filter-buttons {
        width: 100%;
        justify-content: center;
    }
    
    .oceans-grid {
        gap: var(--spacing-md);
    }
    
    .ocean-card {
        width: 48%;
        max-width: 200px;
    }
    
    .ocean-image-container {
        width: 120px;
        height: 120px;
    }
    
    .ocean-name {
        font-size: 1.2rem;
    }
    
    .seas-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .profile-header {
        flex-direction: column;
        text-align: center;
    }
    
    .header-left {
        order: -1;
        align-self: flex-start;
    }
    
    .header-right {
        flex-direction: column;
        width: 100%;
    }
    
    .mode-toggles {
        flex-direction: row;
        justify-content: center;
    }
    
    .map-layers-panel {
        font-size: 0.8rem;
        min-width: 150px;
    }
    
    .dive-visualization {
        grid-template-columns: 1fr;
    }
    
    .depth-column {
        order: 2;
    }
    
    .depth-meter {
        width: 100%;
        height: 80px;
        display: flex;
    }
    
    .depth-zones {
        flex-direction: row;
    }
    
    .zone-label,
    .zone-depth {
        writing-mode: horizontal-tb;
    }
    
    #diverIcon {
        left: 0;
        top: 50%;
        transform: translate(-50%, -50%);
    }
    
    .dive-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .quick-facts-panel {
        flex-wrap: wrap;
        justify-content: center;
        gap: var(--spacing-md);
    }
    
    .ocean-navigation {
        flex-wrap: wrap;
    }
    
    .nav-label {
        display: none;
    }
}

@media (max-width: 480px) {
    .header-title h1 {
        font-size: 1.5rem;
        flex-direction: column;
    }
    
    .ocean-card {
        width: 100%;
        max-width: 280px;
    }
    
    .ocean-image-container {
        width: 140px;
        height: 140px;
    }
    
    .seas-grid {
        grid-template-columns: 1fr;
    }
    
    .seas-filter {
        flex-direction: column;
    }
    
    .sea-filter-btn {
        width: 100%;
        justify-content: center;
    }
    
    .map-container {
        height: 350px;
    }
    
    .map-layers-panel {
        top: auto;
        bottom: 60px;
        left: var(--spacing-sm);
        right: var(--spacing-sm);
        width: auto;
    }
    
    .currents-title {
        font-size: 1.3rem;
    }
    
    .journey-progress {
        display: none;
    }
}

/* ═══════════════════════════════════════════════════════════
   UTILITY CLASSES
   ═══════════════════════════════════════════════════════════ */

.hidden {
    display: none !important;
}

.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;
}

/* Print Styles */
@media print {
    .loading-screen,
    .ocean-background,
    .bubbles-container,
    .caustics-container,
    .plankton-container,
    .wave-container,
    .back-button,
    .action-buttons,
    .quick-facts-panel,
    .ocean-navigation {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .ocean-card,
    .sea-card {
        break-inside: avoid;
    }
}
