/* ═══════════════════════════════════════════════════════════
   🌋 VOLCANOES EXPLORER - VOLCANIC FIRE & MAGMA THEME
   ═══════════════════════════════════════════════════════════ */

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

:root {
    /* Lava Colors */
    --lava-red: #FF4500;
    --lava-orange: #FF6B35;
    --lava-bright: #FF8C00;
    
    /* Magma Colors */
    --magma-deep: #DC143C;
    --magma-glow: #FF2400;
    
    /* Ember Colors */
    --ember-orange: #E25822;
    --ember-yellow: #FFD700;
    --fire-yellow: #FFAE42;
    
    /* Dark/Ash Colors */
    --ash-gray: #4A4A4A;
    --ash-dark: #2D2D2D;
    --smoke-gray: #696969;
    --volcanic-black: #1A1A1A;
    --obsidian: #0D0D0D;
    --crater-brown: #3D2817;
    --rock-gray: #5D5D5D;
    
    /* Text Colors */
    --text-light: #FFF5EE;
    --text-white: #FFFFFF;
    --text-muted: rgba(255, 245, 238, 0.7);
    --text-dim: rgba(255, 245, 238, 0.5);
    
    /* Card/UI Colors */
    --card-bg: rgba(255, 69, 0, 0.08);
    --card-bg-solid: rgba(26, 26, 26, 0.95);
    --card-border: rgba(255, 107, 53, 0.3);
    --card-border-hover: rgba(255, 107, 53, 0.6);
    
    /* Glass Effect */
    --glass-bg: rgba(13, 13, 13, 0.8);
    --glass-border: rgba(255, 107, 53, 0.2);
    
    /* Status Colors */
    --status-active: #FF4500;
    --status-active-glow: rgba(255, 69, 0, 0.5);
    --status-dormant: #FFD700;
    --status-dormant-glow: rgba(255, 215, 0, 0.5);
    --status-extinct: #696969;
    --status-extinct-glow: rgba(105, 105, 105, 0.5);
    
    /* Gradients */
    --bg-gradient: linear-gradient(180deg, #0D0D0D 0%, #1A1A1A 30%, #2D2D2D 60%, #3D2817 100%);
    --card-gradient: linear-gradient(135deg, rgba(45, 45, 45, 0.9) 0%, rgba(26, 26, 26, 0.95) 100%);
    --lava-gradient: linear-gradient(180deg, #FF4500 0%, #FF6B35 50%, #DC143C 100%);
    --ember-gradient: linear-gradient(135deg, #FF4500 0%, #FF8C00 50%, #FFD700 100%);
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(255, 69, 0, 0.3);
    --shadow-glow-intense: 0 0 40px rgba(255, 69, 0, 0.5);
    
    /* Sizing */
    --header-height: 280px;
    --card-size: 150px;
    --border-radius: 12px;
    --border-radius-lg: 20px;
    --border-radius-full: 50%;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    --transition-bounce: 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Z-Index Layers */
    --z-background: -1;
    --z-default: 1;
    --z-cards: 10;
    --z-header: 100;
    --z-overlay: 500;
    --z-modal: 1000;
    --z-tooltip: 1500;
}

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

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

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-gradient);
    color: var(--text-light);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

input, select {
    font-family: inherit;
    color: inherit;
}

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

ul, ol {
    list-style: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--volcanic-black);
}

::-webkit-scrollbar-thumb {
    background: var(--lava-orange);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--lava-red);
}

/* Selection */
::selection {
    background: var(--lava-orange);
    color: var(--text-white);
}

/* ═══════════════════════════════════════════════════════════
   ANIMATIONS - VOLCANIC EFFECTS
   ═══════════════════════════════════════════════════════════ */

/* Lava Glow Pulse */
@keyframes lavaGlow {
    0%, 100% { 
        box-shadow: 0 0 20px rgba(255, 69, 0, 0.3),
                    0 0 40px rgba(255, 69, 0, 0.2);
    }
    50% { 
        box-shadow: 0 0 40px rgba(255, 69, 0, 0.6),
                    0 0 80px rgba(255, 107, 53, 0.4);
    }
}

/* Rising Smoke/Ash */
@keyframes smokeRise {
    0% { 
        transform: translateY(0) scale(1) rotate(0deg); 
        opacity: 0.4;
    }
    50% {
        opacity: 0.2;
    }
    100% { 
        transform: translateY(-100vh) scale(2.5) rotate(180deg); 
        opacity: 0;
    }
}

/* Floating Ember Particles */
@keyframes emberFloat {
    0% { 
        transform: translateY(0) translateX(0) scale(1); 
        opacity: 0;
    }
    10% { 
        opacity: 1; 
    }
    90% { 
        opacity: 0.6; 
    }
    100% { 
        transform: translateY(-100vh) translateX(50px) scale(0.5); 
        opacity: 0;
    }
}

/* Ember Float Variant 2 */
@keyframes emberFloat2 {
    0% { 
        transform: translateY(0) translateX(0) scale(1); 
        opacity: 0;
    }
    15% { 
        opacity: 1; 
    }
    85% { 
        opacity: 0.5; 
    }
    100% { 
        transform: translateY(-90vh) translateX(-40px) scale(0.3); 
        opacity: 0;
    }
}

/* Magma Flow */
@keyframes magmaFlow {
    0% { background-position: 0% 0%; }
    100% { background-position: 100% 100%; }
}

/* Crater Glow */
@keyframes craterGlow {
    0%, 100% { 
        filter: drop-shadow(0 0 10px rgba(255, 69, 0, 0.5));
        opacity: 0.8;
    }
    50% { 
        filter: drop-shadow(0 0 25px rgba(255, 107, 53, 0.8));
        opacity: 1;
    }
}

/* Tectonic Pulse */
@keyframes tectonicPulse {
    0%, 100% { 
        stroke-opacity: 0.5;
        filter: drop-shadow(0 0 5px #FF4500);
    }
    50% { 
        stroke-opacity: 1;
        filter: drop-shadow(0 0 15px #FF6B35);
    }
}

/* Ember Pulse for Coming Soon */
@keyframes emberPulse {
    0%, 100% { 
        opacity: 0.4; 
        box-shadow: 0 0 20px rgba(255, 69, 0, 0.2);
    }
    50% { 
        opacity: 0.7; 
        box-shadow: 0 0 40px rgba(255, 69, 0, 0.5);
    }
}

/* Flicker */
@keyframes flicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

/* Pulse */
@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

/* Rotate */
@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Slide Up */
@keyframes slideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Fade In */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Scale In */
@keyframes scaleIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Shimmer */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Loading Bar */
@keyframes loadingBar {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

/* Eruption Shake */
@keyframes eruptionShake {
    0%, 100% { transform: translateX(0); }
    10% { transform: translateX(-5px) rotate(-1deg); }
    20% { transform: translateX(5px) rotate(1deg); }
    30% { transform: translateX(-5px) rotate(-1deg); }
    40% { transform: translateX(5px) rotate(1deg); }
    50% { transform: translateX(-3px); }
    60% { transform: translateX(3px); }
    70% { transform: translateX(-2px); }
    80% { transform: translateX(2px); }
    90% { transform: translateX(-1px); }
}

/* Lava Fountain */
@keyframes lavaFountain {
    0%, 100% { 
        height: 60px;
        opacity: 0.8;
    }
    50% { 
        height: 120px;
        opacity: 1;
    }
}

/* Ash Cloud Expand */
@keyframes ashCloudExpand {
    0% { 
        transform: scale(0.5);
        opacity: 0;
    }
    50% {
        opacity: 0.6;
    }
    100% { 
        transform: scale(3);
        opacity: 0;
    }
}

/* Spark */
@keyframes spark {
    0% { 
        transform: translateY(0) scale(1);
        opacity: 1;
    }
    100% { 
        transform: translateY(-50px) scale(0);
        opacity: 0;
    }
}

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

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

/* Ember Container */
.ember-container {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.ember {
    position: absolute;
    bottom: -10px;
    width: 4px;
    height: 4px;
    background: var(--ember-orange);
    border-radius: 50%;
    box-shadow: 0 0 6px var(--lava-orange),
                0 0 12px var(--lava-red);
    animation: emberFloat linear infinite;
}

.ember:nth-child(odd) {
    animation-name: emberFloat2;
    background: var(--ember-yellow);
}

.ember:nth-child(3n) {
    width: 3px;
    height: 3px;
    background: var(--fire-yellow);
}

/* Smoke Wisps */
.smoke-container {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.smoke-wisp {
    position: absolute;
    bottom: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(ellipse at center, 
        rgba(105, 105, 105, 0.3) 0%, 
        transparent 70%);
    border-radius: 50%;
    animation: smokeRise linear infinite;
}

.smoke-1 {
    left: 10%;
    animation-duration: 15s;
    animation-delay: 0s;
    width: 120px;
    height: 120px;
}

.smoke-2 {
    left: 30%;
    animation-duration: 18s;
    animation-delay: 3s;
    width: 80px;
    height: 80px;
}

.smoke-3 {
    left: 50%;
    animation-duration: 20s;
    animation-delay: 6s;
    width: 150px;
    height: 150px;
}

.smoke-4 {
    left: 70%;
    animation-duration: 16s;
    animation-delay: 2s;
    width: 90px;
    height: 90px;
}

.smoke-5 {
    left: 85%;
    animation-duration: 22s;
    animation-delay: 8s;
    width: 110px;
    height: 110px;
}

/* Lava Glow at Bottom */
.lava-glow-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    background: linear-gradient(to top, 
        rgba(255, 69, 0, 0.15) 0%, 
        rgba(255, 107, 53, 0.05) 50%,
        transparent 100%);
    animation: craterGlow 4s ease-in-out infinite;
}

/* ═══════════════════════════════════════════════════════════
   APP CONTAINER
   ═══════════════════════════════════════════════════════════ */

.app-container {
    position: relative;
    z-index: var(--z-default);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ═══════════════════════════════════════════════════════════
   HEADER SECTION
   ═══════════════════════════════════════════════════════════ */

.volcanic-header {
    position: relative;
    padding: 20px 30px 30px;
    background: linear-gradient(180deg, 
        rgba(13, 13, 13, 0.95) 0%, 
        rgba(26, 26, 26, 0.9) 50%,
        transparent 100%);
    border-bottom: 1px solid var(--card-border);
}

/* Back Button */
.back-button {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-full);
    color: var(--text-light);
    font-size: 1.2rem;
    backdrop-filter: blur(10px);
    transition: var(--transition-normal);
}

.back-button:hover {
    background: rgba(255, 69, 0, 0.2);
    border-color: var(--lava-orange);
    transform: translateX(-3px);
    box-shadow: var(--shadow-glow);
}

/* Header Content */
.header-content {
    text-align: center;
    padding-top: 20px;
}

.title-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 10px;
}

/* Animated Volcano Icon */
.volcano-icon-animated {
    position: relative;
    font-size: 3rem;
    color: var(--lava-orange);
    animation: craterGlow 3s ease-in-out infinite;
}

.eruption-sparks {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 4px;
}

.eruption-sparks span {
    width: 4px;
    height: 4px;
    background: var(--ember-yellow);
    border-radius: 50%;
    animation: spark 1s ease-out infinite;
}

.eruption-sparks span:nth-child(1) {
    animation-delay: 0s;
}

.eruption-sparks span:nth-child(2) {
    animation-delay: 0.2s;
    background: var(--lava-orange);
}

.eruption-sparks span:nth-child(3) {
    animation-delay: 0.4s;
}

/* Main Title */
.main-title {
    font-family: 'Cinzel', serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-white);
    text-shadow: 0 0 30px rgba(255, 69, 0, 0.5),
                 0 2px 10px rgba(0, 0, 0, 0.5);
    letter-spacing: 2px;
}

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

/* Stats Bar */
.stats-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-top: 30px;
    padding: 20px 40px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    backdrop-filter: blur(10px);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.stat-icon {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 69, 0, 0.15);
    border-radius: var(--border-radius);
    font-size: 1.3rem;
    color: var(--lava-orange);
}

.stat-icon.pulsing {
    animation: pulse 2s ease-in-out infinite;
    background: rgba(255, 69, 0, 0.25);
}

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

.stat-value {
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-white);
}

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

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

.active-stat .stat-value {
    color: var(--lava-red);
}

/* ═══════════════════════════════════════════════════════════
   SEARCH & FILTER SECTION
   ═══════════════════════════════════════════════════════════ */

.filter-section {
    padding: 20px 30px;
    background: rgba(13, 13, 13, 0.6);
    border-bottom: 1px solid var(--card-border);
}

/* Search Container */
.search-container {
    max-width: 600px;
    margin: 0 auto 20px;
}

.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 20px;
    font-size: 1.1rem;
    color: var(--text-muted);
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 15px 50px 15px 50px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    font-size: 1rem;
    color: var(--text-light);
    outline: none;
    transition: var(--transition-normal);
}

.search-input::placeholder {
    color: var(--text-dim);
}

.search-input:focus {
    border-color: var(--lava-orange);
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.2);
}

.search-clear {
    position: absolute;
    right: 15px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 69, 0, 0.2);
    border-radius: var(--border-radius-full);
    color: var(--text-muted);
    font-size: 0.9rem;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
}

.search-input:not(:placeholder-shown) + .search-clear {
    opacity: 1;
    visibility: visible;
}

.search-clear:hover {
    background: var(--lava-red);
    color: var(--text-white);
}

/* Filter Controls */
.filter-controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

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

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

.filter-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: var(--transition-normal);
}

.filter-btn:hover {
    border-color: var(--lava-orange);
    color: var(--text-light);
}

.filter-btn.active {
    background: rgba(255, 69, 0, 0.2);
    border-color: var(--lava-orange);
    color: var(--lava-orange);
}

/* Status Dots */
.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.active-dot {
    background: var(--status-active);
    box-shadow: 0 0 8px var(--status-active-glow);
}

.dormant-dot {
    background: var(--status-dormant);
    box-shadow: 0 0 8px var(--status-dormant-glow);
}

.extinct-dot {
    background: var(--status-extinct);
}

/* Type Filters */
.type-filters .filter-buttons {
    gap: 6px;
}

.type-btn {
    padding: 6px 12px;
    font-size: 0.8rem;
}

/* Region Select */
.select-wrapper {
    position: relative;
}

.region-select {
    appearance: none;
    padding: 10px 40px 10px 15px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    color: var(--text-light);
    cursor: pointer;
    min-width: 180px;
    outline: none;
    transition: var(--transition-normal);
}

.region-select:focus {
    border-color: var(--lava-orange);
}

.region-select option {
    background: var(--volcanic-black);
    color: var(--text-light);
}

.region-select optgroup {
    color: var(--lava-orange);
    font-weight: 600;
}

.select-arrow {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Tectonic Toggle Button */
.tectonic-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 25px;
    color: var(--text-muted);
    transition: var(--transition-normal);
}

.tectonic-btn:hover {
    border-color: var(--lava-orange);
    color: var(--text-light);
}

.tectonic-btn.active {
    background: rgba(255, 69, 0, 0.2);
    border-color: var(--lava-orange);
    color: var(--lava-orange);
}

.toggle-switch {
    width: 40px;
    height: 20px;
    background: var(--ash-dark);
    border-radius: 10px;
    position: relative;
    transition: var(--transition-normal);
}

.toggle-slider {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    background: var(--smoke-gray);
    border-radius: 50%;
    transition: var(--transition-normal);
}

.tectonic-btn.active .toggle-switch {
    background: rgba(255, 69, 0, 0.3);
}

.tectonic-btn.active .toggle-slider {
    left: 22px;
    background: var(--lava-orange);
    box-shadow: 0 0 10px var(--lava-orange);
}

/* Active Filters */
.active-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    min-height: 30px;
}

.active-filter-tag {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: rgba(255, 69, 0, 0.15);
    border: 1px solid var(--lava-orange);
    border-radius: 15px;
    font-size: 0.8rem;
    color: var(--lava-orange);
}

.active-filter-tag button {
    font-size: 0.7rem;
    opacity: 0.7;
    transition: var(--transition-fast);
}

.active-filter-tag button:hover {
    opacity: 1;
}

/* Results Info */
.results-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--glass-border);
}

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

.results-count strong {
    color: var(--lava-orange);
}

.sort-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-dim);
}

.sort-info i {
    color: var(--ember-orange);
}

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

.tectonic-map-section {
    display: none;
    padding: 20px 30px;
    animation: slideUp 0.4s ease;
}

.tectonic-map-section.active {
    display: block;
}

.tectonic-map-container {
    background: var(--glass-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
}

.tectonic-map-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: rgba(255, 69, 0, 0.1);
    border-bottom: 1px solid var(--card-border);
}

.tectonic-map-header h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    color: var(--lava-orange);
}

.close-tectonic-map {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 69, 0, 0.2);
    border-radius: var(--border-radius-full);
    color: var(--text-muted);
    transition: var(--transition-normal);
}

.close-tectonic-map:hover {
    background: var(--lava-red);
    color: var(--text-white);
}

.tectonic-map {
    height: 400px;
    width: 100%;
}

.tectonic-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid var(--card-border);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

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

.legend-icon.convergent {
    background: var(--magma-deep);
}

.legend-icon.divergent {
    background: var(--lava-orange);
}

.legend-icon.transform {
    background: var(--ember-yellow);
}

.legend-icon.hotspot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--fire-yellow);
    box-shadow: 0 0 8px var(--fire-yellow);
}

.legend-icon.ring-fire {
    width: 20px;
    height: 4px;
    background: linear-gradient(90deg, var(--lava-red), var(--lava-orange));
    box-shadow: 0 0 10px var(--lava-orange);
}

.ring-of-fire-legend {
    color: var(--lava-orange);
}

/* ═══════════════════════════════════════════════════════════
   LOADING STATE
   ═══════════════════════════════════════════════════════════ */

.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    animation: fadeIn 0.5s ease;
}

.loading-state.hidden {
    display: none;
}

.loading-volcano {
    position: relative;
    width: 100px;
    height: 100px;
    margin-bottom: 30px;
}

.loading-mountain {
    font-size: 4rem;
    color: var(--rock-gray);
    text-align: center;
}

.loading-lava {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
}

.loading-lava span {
    width: 8px;
    height: 8px;
    background: var(--lava-orange);
    border-radius: 50%;
    animation: spark 0.8s ease-out infinite;
    box-shadow: 0 0 10px var(--lava-orange);
}

.loading-lava span:nth-child(1) {
    animation-delay: 0s;
}

.loading-lava span:nth-child(2) {
    animation-delay: 0.15s;
    background: var(--ember-yellow);
}

.loading-lava span:nth-child(3) {
    animation-delay: 0.3s;
}

.loading-text {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    animation: flicker 2s ease-in-out infinite;
}

.loading-progress {
    width: 200px;
    height: 4px;
    background: var(--ash-dark);
    border-radius: 2px;
    overflow: hidden;
}

.loading-bar {
    height: 100%;
    background: var(--lava-gradient);
    border-radius: 2px;
    animation: loadingBar 2s ease-in-out infinite;
}

/* ═══════════════════════════════════════════════════════════
   VOLCANOES GRID
   ═══════════════════════════════════════════════════════════ */

.volcanoes-grid-section {
    flex: 1;
    padding: 30px;
}

.volcanoes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 25px;
    max-width: 1400px;
    margin: 0 auto;
}

/* ═══════════════════════════════════════════════════════════
   VOLCANO CARDS
   ═══════════════════════════════════════════════════════════ */

.volcano-card {
    position: relative;
    background: var(--card-gradient);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    animation: fadeIn 0.5s ease backwards;
}

.volcano-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 50px rgba(255, 69, 0, 0.4),
                0 0 40px rgba(255, 107, 53, 0.3),
                0 0 60px rgba(220, 20, 60, 0.2);
    border-color: var(--lava-orange);
    z-index: var(--z-cards);
}

/* Animation Delays */
.volcano-card:nth-child(1) { animation-delay: 0.02s; }
.volcano-card:nth-child(2) { animation-delay: 0.04s; }
.volcano-card:nth-child(3) { animation-delay: 0.06s; }
.volcano-card:nth-child(4) { animation-delay: 0.08s; }
.volcano-card:nth-child(5) { animation-delay: 0.1s; }
.volcano-card:nth-child(6) { animation-delay: 0.12s; }
.volcano-card:nth-child(7) { animation-delay: 0.14s; }
.volcano-card:nth-child(8) { animation-delay: 0.16s; }
.volcano-card:nth-child(9) { animation-delay: 0.18s; }
.volcano-card:nth-child(10) { animation-delay: 0.2s; }

/* Card Rank Badge */
.card-rank {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
}

.rank-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid var(--lava-orange);
    border-radius: var(--border-radius-full);
    font-family: 'Orbitron', monospace;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--lava-orange);
}

/* Volcano Image Container */
.volcano-image-container {
    position: relative;
    width: 100%;
    padding-top: 100%; /* 1:1 Aspect Ratio */
    overflow: hidden;
}

.volcano-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, filter 0.3s ease;
}

.volcano-card:hover .volcano-image {
    transform: scale(1.1);
    filter: brightness(1.1) saturate(1.3);
}

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

/* Status Badge on Card */
.status-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 500;
    backdrop-filter: blur(5px);
}

.status-indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

/* Status Variations */
.volcano-card[data-status="active"] .status-indicator {
    background: var(--status-active);
    box-shadow: 0 0 8px var(--status-active);
    animation: pulse 2s ease-in-out infinite;
}

.volcano-card[data-status="active"] .status-text {
    color: var(--status-active);
}

.volcano-card[data-status="dormant"] .status-indicator {
    background: var(--status-dormant);
    box-shadow: 0 0 6px var(--status-dormant-glow);
}

.volcano-card[data-status="dormant"] .status-text {
    color: var(--status-dormant);
}

.volcano-card[data-status="extinct"] .status-indicator {
    background: var(--status-extinct);
}

.volcano-card[data-status="extinct"] .status-text {
    color: var(--status-extinct);
}

/* Elevation Badge */
.elevation-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: rgba(255, 69, 0, 0.8);
    border-radius: 8px;
    font-family: 'Orbitron', monospace;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-white);
}

.elevation-badge i {
    font-size: 0.6rem;
}

/* Volcano Info */
.volcano-info {
    padding: 15px;
}

.volcano-name {
    font-family: 'Cinzel', serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 8px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.volcano-location {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.country-flag {
    width: 20px;
    height: 14px;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

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

.volcano-meta {
    margin-bottom: 6px;
}

.volcano-type {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 8px;
    background: rgba(255, 107, 53, 0.15);
    border-radius: 10px;
    font-size: 0.7rem;
    color: var(--lava-orange);
}

.volcano-type i {
    font-size: 0.65rem;
}

.last-eruption {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: var(--text-dim);
}

.last-eruption i {
    color: var(--ember-orange);
}

/* Card Hover Effect */
.card-hover-effect {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    overflow: hidden;
}

.lava-glow {
    width: 100%;
    height: 100%;
    background: var(--lava-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.volcano-card:hover .lava-glow {
    transform: scaleX(1);
}

/* Card Link */
.card-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
}

/* ═══════════════════════════════════════════════════════════
   COMING SOON CARD
   ═══════════════════════════════════════════════════════════ */

.coming-soon-card {
    opacity: 0.6;
    border: 2px dashed rgba(255, 107, 53, 0.5);
    cursor: default;
}

.coming-soon-card:hover {
    opacity: 0.85;
    border-color: rgba(255, 69, 0, 0.8);
    box-shadow: 0 0 30px rgba(255, 69, 0, 0.3);
    transform: translateY(-5px);
}

.coming-soon-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1A1A1A 0%, #3D2817 100%);
    animation: emberPulse 3s ease-in-out infinite;
}

.placeholder-icons {
    position: relative;
    font-size: 3rem;
    color: var(--smoke-gray);
}

.placeholder-icons .fa-volcano {
    opacity: 0.5;
}

.plus-icon {
    position: absolute;
    top: -10px;
    right: -15px;
    font-size: 1.2rem;
    color: var(--lava-orange);
    animation: pulse 2s ease-in-out infinite;
}

.ember-particles-mini {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
}

.ember-particles-mini span {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--ember-orange);
    border-radius: 50%;
    animation: emberFloat 3s linear infinite;
}

.ember-particles-mini span:nth-child(1) { left: -20px; animation-delay: 0s; }
.ember-particles-mini span:nth-child(2) { left: -10px; animation-delay: 0.5s; }
.ember-particles-mini span:nth-child(3) { left: 0; animation-delay: 1s; }
.ember-particles-mini span:nth-child(4) { left: 10px; animation-delay: 1.5s; }
.ember-particles-mini span:nth-child(5) { left: 20px; animation-delay: 2s; }

.coming-soon-card .volcano-info {
    text-align: center;
}

.coming-soon-text {
    font-size: 0.85rem;
    color: var(--ember-orange);
    animation: flicker 2s ease-in-out infinite;
}

/* ═══════════════════════════════════════════════════════════
   NO RESULTS STATE
   ═══════════════════════════════════════════════════════════ */

.no-results {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.no-results.active {
    display: flex;
}

.no-results-icon {
    position: relative;
    font-size: 4rem;
    color: var(--smoke-gray);
    margin-bottom: 20px;
}

.no-results-icon .fa-question {
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 1.5rem;
    color: var(--ember-orange);
}

.no-results h3 {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.no-results p {
    color: var(--text-dim);
    margin-bottom: 20px;
}

.reset-filters-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: rgba(255, 69, 0, 0.2);
    border: 1px solid var(--lava-orange);
    border-radius: 25px;
    color: var(--lava-orange);
    font-size: 0.95rem;
    transition: var(--transition-normal);
}

.reset-filters-btn:hover {
    background: var(--lava-orange);
    color: var(--text-white);
}

/* ═══════════════════════════════════════════════════════════
   SCROLL TO TOP BUTTON
   ═══════════════════════════════════════════════════════════ */

.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--volcanic-black);
    border: 2px solid var(--lava-orange);
    border-radius: var(--border-radius-full);
    color: var(--lava-orange);
    font-size: 1.2rem;
    z-index: var(--z-header);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition-normal);
    overflow: hidden;
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    background: var(--lava-orange);
    color: var(--text-white);
}

.scroll-top-btn .lava-fill {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: var(--lava-gradient);
    transition: height 0.3s ease;
    z-index: -1;
}

.scroll-top-btn:hover .lava-fill {
    height: 100%;
}

.scroll-top-btn i {
    position: relative;
    z-index: 1;
}

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

.volcanic-footer {
    position: relative;
    padding: 40px 30px 30px;
    background: linear-gradient(180deg, transparent 0%, rgba(13, 13, 13, 0.95) 30%);
    text-align: center;
    margin-top: auto;
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: 'Cinzel', serif;
    font-size: 1.3rem;
    color: var(--lava-orange);
    margin-bottom: 10px;
}

.footer-brand i {
    animation: craterGlow 3s ease-in-out infinite;
}

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

.footer-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--text-dim);
}

.footer-stats i {
    color: var(--ember-orange);
}

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

.magma-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--lava-gradient);
    animation: magmaFlow 3s linear infinite;
    background-size: 200% 100%;
}

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

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

/* Profile Background */
.profile-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: var(--z-background);
    overflow: hidden;
}

.background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, 
        rgba(13, 13, 13, 0.7) 0%,
        rgba(13, 13, 13, 0.5) 30%,
        rgba(13, 13, 13, 0.6) 60%,
        rgba(13, 13, 13, 0.95) 100%);
}

/* Ash Particles */
.ash-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.ash-particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: rgba(150, 150, 150, 0.6);
    border-radius: 50%;
    animation: smokeRise linear infinite;
}

/* Ember Particles Profile */
.ember-particles-profile {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* Crater Glow */
.crater-glow {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 200px;
    background: radial-gradient(ellipse at center, 
        rgba(255, 69, 0, 0.3) 0%, 
        transparent 70%);
    opacity: 0.5;
    animation: craterGlow 4s ease-in-out infinite;
}

/* Profile Container */
.profile-container {
    position: relative;
    z-index: var(--z-default);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Profile Header */
.profile-header {
    padding: 20px 30px 30px;
    background: linear-gradient(180deg, 
        rgba(13, 13, 13, 0.9) 0%, 
        transparent 100%);
}

.profile-back {
    width: auto;
    padding: 10px 20px;
    gap: 10px;
}

.profile-back span {
    font-size: 0.9rem;
}

/* Volcano Title Section */
.volcano-title-section {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 30px;
}

.volcano-main-title {
    margin-bottom: 20px;
}

.volcano-name-large {
    font-family: 'Cinzel', serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-white);
    text-shadow: 0 0 40px rgba(255, 69, 0, 0.5),
                 0 4px 20px rgba(0, 0, 0, 0.5);
    letter-spacing: 3px;
    margin-bottom: 10px;
}

.volcano-native-name {
    font-size: 1.3rem;
    color: var(--text-muted);
    font-style: italic;
}

/* Volcano Badges */
.volcano-badges {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.country-badge,
.status-badge-large,
.elevation-badge-large,
.type-badge-large {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 25px;
    backdrop-filter: blur(10px);
}

.country-flag-large {
    width: 28px;
    height: 20px;
    object-fit: cover;
    border-radius: 3px;
}

.country-badge .country-name {
    font-size: 0.95rem;
    color: var(--text-light);
}

.status-badge-large {
    border-color: var(--status-active);
}

.status-indicator-large {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--status-active);
    box-shadow: 0 0 10px var(--status-active);
    animation: pulse 2s ease-in-out infinite;
}

.status-text-large {
    font-weight: 600;
    color: var(--status-active);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Dormant Status */
.status-badge-large.dormant {
    border-color: var(--status-dormant);
}

.status-badge-large.dormant .status-indicator-large {
    background: var(--status-dormant);
    box-shadow: 0 0 8px var(--status-dormant-glow);
    animation: none;
}

.status-badge-large.dormant .status-text-large {
    color: var(--status-dormant);
}

/* Extinct Status */
.status-badge-large.extinct {
    border-color: var(--status-extinct);
}

.status-badge-large.extinct .status-indicator-large {
    background: var(--status-extinct);
    box-shadow: none;
    animation: none;
}

.status-badge-large.extinct .status-text-large {
    color: var(--status-extinct);
}

.elevation-badge-large {
    background: rgba(255, 69, 0, 0.2);
    border-color: var(--lava-orange);
}

.elevation-badge-large i {
    color: var(--lava-orange);
}

.elevation-large {
    font-family: 'Orbitron', monospace;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--lava-orange);
}

.type-badge-large i {
    color: var(--ember-orange);
}

.type-badge-large span {
    color: var(--text-light);
}

/* Action Buttons */
.action-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 30px;
}

.action-btn {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: var(--glass-bg);
    border: 1px solid var(--card-border);
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-light);
    overflow: hidden;
    transition: var(--transition-normal);
}

.action-btn:hover {
    border-color: var(--lava-orange);
    transform: translateY(-3px);
}

.action-btn i {
    font-size: 1.1rem;
}

.btn-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 107, 53, 0.2), 
        transparent);
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}

.action-btn:hover .btn-glow {
    transform: translateX(100%);
}

/* Eruption Button */
.eruption-btn {
    background: rgba(255, 69, 0, 0.15);
    border-color: var(--lava-red);
}

.eruption-btn:hover {
    background: rgba(255, 69, 0, 0.3);
    box-shadow: 0 0 30px rgba(255, 69, 0, 0.4);
}

.eruption-btn i {
    color: var(--lava-red);
    animation: flicker 1s ease-in-out infinite;
}

/* Flyover Button */
.flyover-btn:hover {
    background: rgba(255, 107, 53, 0.2);
}

.flyover-btn i {
    color: var(--lava-orange);
}

/* Tectonic Button Profile */
.tectonic-btn-profile {
    padding-right: 20px;
}

.tectonic-btn-profile .toggle-indicator {
    width: 12px;
    height: 12px;
    background: var(--smoke-gray);
    border-radius: 50%;
    transition: var(--transition-normal);
}

.tectonic-btn-profile.active .toggle-indicator {
    background: var(--lava-orange);
    box-shadow: 0 0 10px var(--lava-orange);
}

/* Fullscreen Button */
.fullscreen-btn {
    padding: 14px 18px;
}

/* ═══════════════════════════════════════════════════════════
   PROFILE MAIN CONTENT
   ═══════════════════════════════════════════════════════════ */

.profile-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 0 30px 120px;
    max-width: 1600px;
    margin: 0 auto;
    width: 100%;
}

/* Map Section */
.map-section {
    position: relative;
}

.map-container {
    position: relative;
    background: var(--glass-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
}

.volcano-map {
    height: 500px;
    width: 100%;
    background: var(--volcanic-black);
}

/* Leaflet Map Custom Styles */
.leaflet-container {
    background: var(--volcanic-black);
    font-family: 'Inter', sans-serif;
}

.leaflet-popup-content-wrapper {
    background: var(--glass-bg);
    border: 1px solid var(--lava-orange);
    border-radius: var(--border-radius);
    color: var(--text-light);
}

.leaflet-popup-tip {
    background: var(--glass-bg);
    border: 1px solid var(--lava-orange);
}

.leaflet-control-zoom a {
    background: var(--glass-bg) !important;
    border-color: var(--card-border) !important;
    color: var(--text-light) !important;
}

.leaflet-control-zoom a:hover {
    background: var(--lava-orange) !important;
}

/* Map Controls Panel */
.map-controls-panel {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--glass-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius);
    padding: 15px;
    z-index: 400;
    backdrop-filter: blur(10px);
    max-width: 200px;
}

.controls-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--lava-orange);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--card-border);
}

.map-toggles {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.map-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.map-toggle input {
    display: none;
}

.toggle-slider-small {
    width: 32px;
    height: 16px;
    background: var(--ash-dark);
    border-radius: 8px;
    position: relative;
    transition: var(--transition-normal);
    flex-shrink: 0;
}

.toggle-slider-small::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 12px;
    height: 12px;
    background: var(--smoke-gray);
    border-radius: 50%;
    transition: var(--transition-normal);
}

.map-toggle input:checked + .toggle-slider-small {
    background: rgba(255, 69, 0, 0.3);
}

.map-toggle input:checked + .toggle-slider-small::after {
    left: 18px;
    background: var(--lava-orange);
    box-shadow: 0 0 8px var(--lava-orange);
}

.toggle-label {
    display: flex;
    align-items: center;
    gap: 6px;
}

.toggle-label i {
    font-size: 0.8rem;
    color: var(--ember-orange);
}

.reset-view-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 8px 12px;
    margin-top: 12px;
    background: rgba(255, 69, 0, 0.15);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--text-muted);
    transition: var(--transition-normal);
}

.reset-view-btn:hover {
    border-color: var(--lava-orange);
    color: var(--lava-orange);
}

/* Map Legend */
.map-legend {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: var(--glass-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius);
    padding: 12px;
    z-index: 400;
    backdrop-filter: blur(10px);
}

.map-legend .legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.map-legend .legend-item:last-child {
    margin-bottom: 0;
}

.legend-marker {
    width: 12px;
    height: 12px;
    background: var(--lava-red);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--lava-red);
}

.legend-line {
    width: 20px;
    height: 3px;
    background: var(--magma-deep);
    border-radius: 2px;
}

.legend-arrow {
    width: 0;
    height: 0;
    border-left: 8px solid var(--lava-orange);
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
}

.legend-path {
    width: 20px;
    height: 3px;
    background: linear-gradient(90deg, var(--lava-red), var(--lava-orange));
    border-radius: 2px;
}

.legend-circle {
    width: 14px;
    height: 14px;
    background: rgba(255, 69, 0, 0.3);
    border: 1px solid var(--lava-red);
    border-radius: 50%;
}

.legend-dot {
    width: 10px;
    height: 10px;
    background: var(--ember-yellow);
    border-radius: 50%;
}

/* Coordinates Display */
.coordinates-display {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: var(--glass-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius);
    padding: 8px 12px;
    font-size: 0.8rem;
    z-index: 400;
    backdrop-filter: blur(10px);
}

.coord-label {
    color: var(--text-muted);
    margin-right: 5px;
}

.coord-value {
    font-family: 'Orbitron', monospace;
    color: var(--lava-orange);
}

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

.info-section {
    max-height: 600px;
    overflow-y: auto;
}

.mind-map-container {
    background: var(--glass-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius-lg);
    padding: 20px;
    backdrop-filter: blur(10px);
}

.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    color: var(--lava-orange);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--card-border);
}

/* Mind Map Branches */
.mind-map-tree {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mind-map-branch {
    background: rgba(255, 69, 0, 0.05);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition-normal);
}

.mind-map-branch:hover {
    border-color: var(--lava-orange);
}

.branch-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    cursor: pointer;
    transition: var(--transition-normal);
}

.branch-header:hover {
    background: rgba(255, 69, 0, 0.1);
}

.branch-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 107, 53, 0.2);
    border-radius: var(--border-radius);
    font-size: 1rem;
    color: var(--lava-orange);
}

.status-icon {
    background: rgba(255, 69, 0, 0.3);
}

.hazard-icon {
    background: rgba(220, 20, 60, 0.3);
    color: var(--magma-deep);
}

.lava-icon {
    background: rgba(255, 140, 0, 0.3);
    color: var(--lava-bright);
}

.branch-title {
    flex: 1;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-light);
}

.branch-toggle {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: var(--transition-normal);
}

.mind-map-branch.expanded .branch-toggle {
    transform: rotate(180deg);
}

/* Branch Content */
.branch-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.mind-map-branch.expanded .branch-content {
    max-height: 500px;
}

.branch-items {
    padding: 0 15px 15px 67px;
}

.branch-items li {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 107, 53, 0.1);
}

.branch-items li:last-child {
    border-bottom: none;
}

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

.item-value {
    font-size: 0.9rem;
    color: var(--text-light);
    text-align: right;
    max-width: 60%;
}

.item-value.highlight {
    color: var(--lava-orange);
    font-weight: 600;
}

.item-value.status-active {
    color: var(--status-active);
}

.vei-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--magma-deep);
    border-radius: var(--border-radius-full);
    font-weight: 700;
}

/* Eruption Timeline */
.eruption-timeline {
    padding: 0 15px 15px 67px;
}

.timeline-item {
    position: relative;
    padding-left: 25px;
    padding-bottom: 15px;
    border-left: 2px solid var(--card-border);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 0;
    width: 10px;
    height: 10px;
    background: var(--lava-orange);
    border-radius: 50%;
}

.timeline-item:last-child {
    border-left-color: transparent;
    padding-bottom: 0;
}

.timeline-year {
    font-family: 'Orbitron', monospace;
    font-size: 0.9rem;
    color: var(--lava-orange);
    margin-bottom: 4px;
}

.timeline-name {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 4px;
}

.timeline-details {
    display: flex;
    gap: 15px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Cities List */
.cities-list {
    padding: 0 15px 15px 67px;
}

.city-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 107, 53, 0.1);
}

.city-item:last-child {
    border-bottom: none;
}

.city-name {
    font-size: 0.95rem;
    color: var(--text-light);
}

.city-info {
    display: flex;
    gap: 15px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.city-distance {
    color: var(--ember-orange);
}

/* Hazards Grid */
.hazards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 0 15px 15px 67px;
}

.hazard-item {
    padding: 12px;
    background: rgba(220, 20, 60, 0.1);
    border: 1px solid rgba(220, 20, 60, 0.3);
    border-radius: var(--border-radius);
}

.hazard-type {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 4px;
}

.hazard-risk {
    font-size: 0.8rem;
}

.hazard-risk.high {
    color: var(--magma-deep);
}

.hazard-risk.moderate {
    color: var(--ember-orange);
}

.hazard-risk.low {
    color: var(--status-dormant);
}

/* Events Timeline */
.events-timeline {
    padding: 0 15px 15px 67px;
}

.event-item {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 107, 53, 0.1);
}

.event-item:last-child {
    border-bottom: none;
}

.event-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.event-name {
    font-weight: 500;
    color: var(--lava-orange);
}

.event-year {
    font-family: 'Orbitron', monospace;
    font-size: 0.85rem;
    color: var(--text-muted);
}

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

/* Fun Facts List */
.fun-facts-list {
    padding: 0 15px 15px 67px;
}

.fun-facts-list li {
    position: relative;
    padding: 8px 0 8px 20px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.fun-facts-list li::before {
    content: '🔥';
    position: absolute;
    left: 0;
    font-size: 0.8rem;
}

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

.quick-facts-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--glass-bg);
    border-top: 1px solid var(--lava-orange);
    backdrop-filter: blur(20px);
    z-index: var(--z-header);
    transition: var(--transition-normal);
}

.quick-facts-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px;
    cursor: pointer;
    color: var(--lava-orange);
    font-size: 0.9rem;
}

.quick-facts-toggle i {
    transition: var(--transition-normal);
}

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

.quick-facts-content {
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 20px 30px;
}

.quick-fact {
    display: flex;
    align-items: center;
    gap: 12px;
}

.fact-icon {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 69, 0, 0.2);
    border-radius: var(--border-radius);
    font-size: 1.2rem;
    color: var(--lava-orange);
}

.status-icon-quick {
    animation: pulse 2s ease-in-out infinite;
}

.fact-info {
    display: flex;
    flex-direction: column;
}

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

.fact-value {
    font-family: 'Orbitron', monospace;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-white);
}

/* ═══════════════════════════════════════════════════════════
   PROFILE NAVIGATION
   ═══════════════════════════════════════════════════════════ */

.profile-navigation {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 15px;
    pointer-events: none;
    z-index: var(--z-header);
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--glass-bg);
    border: 1px solid var(--card-border);
    border-radius: 25px;
    color: var(--text-light);
    font-size: 0.9rem;
    pointer-events: auto;
    backdrop-filter: blur(10px);
    transition: var(--transition-normal);
}

.nav-btn:hover {
    border-color: var(--lava-orange);
    background: rgba(255, 69, 0, 0.2);
}

.nav-btn:disabled {
    opacity: 0.3;
    pointer-events: none;
}

.nav-label {
    display: none;
}

/* ═══════════════════════════════════════════════════════════
   ERUPTION SIMULATION OVERLAY
   ═══════════════════════════════════════════════════════════ */

.eruption-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: var(--z-modal);
    display: none;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

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

.eruption-content {
    text-align: center;
    max-width: 600px;
    padding: 30px;
}

.eruption-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.eruption-warning {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    background: rgba(255, 36, 0, 0.3);
    border: 1px solid var(--magma-glow);
    border-radius: 25px;
    animation: lavaGlow 1.5s ease-in-out infinite;
}

.eruption-warning i {
    color: var(--ember-yellow);
    font-size: 1.3rem;
    animation: flicker 0.5s ease-in-out infinite;
}

.eruption-warning span {
    font-family: 'Orbitron', monospace;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--magma-glow);
}

.stop-eruption-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255, 69, 0, 0.2);
    border: 1px solid var(--lava-red);
    border-radius: 20px;
    color: var(--lava-red);
    font-size: 0.9rem;
    transition: var(--transition-normal);
}

.stop-eruption-btn:hover {
    background: var(--lava-red);
    color: var(--text-white);
}

.eruption-info {
    margin-bottom: 30px;
}

.eruption-phase {
    margin-bottom: 20px;
}

.phase-number {
    display: block;
    font-family: 'Orbitron', monospace;
    font-size: 0.9rem;
    color: var(--ember-orange);
    margin-bottom: 5px;
}

.phase-text {
    font-size: 1.5rem;
    color: var(--text-white);
    animation: flicker 1s ease-in-out infinite;
}

.eruption-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.eruption-stat {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.eruption-stat .stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.eruption-stat .stat-value {
    font-family: 'Orbitron', monospace;
    font-size: 1.3rem;
    color: var(--lava-orange);
}

/* Eruption Visual */
.eruption-visual {
    position: relative;
    height: 250px;
}

.eruption-volcano {
    position: relative;
    width: 100%;
    height: 100%;
}

.volcano-silhouette {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 150px;
    background: linear-gradient(to bottom right, #2a2a2a 0%, #1a1a1a 100%);
    clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
}

#lavaFountain {
    position: absolute;
    bottom: 140px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 0;
    background: linear-gradient(to top, var(--lava-red), var(--ember-yellow), transparent);
    border-radius: 50% 50% 0 0;
    animation: lavaFountain 0.5s ease-in-out infinite;
}

#lavaFountain.active {
    height: 100px;
}

#ashCloudAnimation {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background: radial-gradient(ellipse at center, 
        rgba(100, 100, 100, 0.8) 0%, 
        transparent 70%);
    border-radius: 50%;
    opacity: 0;
}

#ashCloudAnimation.active {
    animation: ashCloudExpand 3s ease-out infinite;
}

.lava-flows {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 50px;
}

.lava-flow {
    position: absolute;
    bottom: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--lava-red), var(--lava-orange));
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 2s ease;
}

.lava-flow.flow-1 {
    left: 10%;
    width: 80px;
}

.lava-flow.flow-2 {
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
}

.lava-flow.flow-3 {
    right: 10%;
    width: 70px;
}

.lava-flow.active {
    transform: scaleX(1);
}

.lava-flow.flow-2.active {
    transform: translateX(-50%) scaleX(1);
}

/* ═══════════════════════════════════════════════════════════
   FLY OVER OVERLAY
   ═══════════════════════════════════════════════════════════ */

.flyover-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: var(--z-modal);
    display: none;
    pointer-events: none;
}

.flyover-overlay.active {
    display: block;
}

.flyover-ui {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--glass-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius-lg);
    padding: 20px;
    min-width: 400px;
    pointer-events: auto;
    backdrop-filter: blur(10px);
}

.flyover-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.flyover-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    color: var(--lava-orange);
}

.flyover-title i {
    animation: pulse 2s ease-in-out infinite;
}

.skip-flyover-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 15px;
    background: rgba(255, 69, 0, 0.2);
    border: 1px solid var(--card-border);
    border-radius: 15px;
    color: var(--text-muted);
    font-size: 0.85rem;
    transition: var(--transition-normal);
}

.skip-flyover-btn:hover {
    border-color: var(--lava-orange);
    color: var(--lava-orange);
}

.flyover-info {
    margin-bottom: 15px;
}

.waypoint-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 10px;
}

.waypoint-name {
    font-size: 1.2rem;
    color: var(--text-white);
}

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

.altitude-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.altitude-indicator i {
    color: var(--lava-orange);
}

.altitude-indicator strong {
    font-family: 'Orbitron', monospace;
    color: var(--lava-orange);
}

.flyover-progress {
    margin-bottom: 15px;
}

.progress-bar {
    height: 4px;
    background: var(--ash-dark);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: var(--lava-gradient);
    border-radius: 2px;
    width: 0%;
    transition: width 0.5s ease;
}

.progress-waypoints {
    display: flex;
    justify-content: space-between;
}

.waypoint-dot {
    width: 10px;
    height: 10px;
    background: var(--ash-dark);
    border-radius: 50%;
    transition: var(--transition-normal);
}

.waypoint-dot.active {
    background: var(--lava-orange);
    box-shadow: 0 0 10px var(--lava-orange);
}

.waypoint-dot.completed {
    background: var(--ember-orange);
}

.flyover-controls {
    display: flex;
    justify-content: center;
}

.flyover-control-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 69, 0, 0.2);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius-full);
    color: var(--text-light);
    font-size: 1rem;
    transition: var(--transition-normal);
}

.flyover-control-btn:hover {
    border-color: var(--lava-orange);
    background: rgba(255, 69, 0, 0.3);
}

/* ═══════════════════════════════════════════════════════════
   PROFILE LOADING
   ═══════════════════════════════════════════════════════════ */

.profile-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--obsidian);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--z-modal);
    transition: opacity 0.5s ease;
}

.profile-loading.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-content {
    text-align: center;
}

.loading-volcano-icon {
    position: relative;
    font-size: 4rem;
    color: var(--rock-gray);
    margin-bottom: 20px;
}

.loading-flames {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
}

.loading-flames span {
    width: 8px;
    height: 20px;
    background: linear-gradient(to top, var(--lava-red), var(--ember-yellow));
    border-radius: 50% 50% 20% 20%;
    animation: flicker 0.3s ease-in-out infinite alternate;
}

.loading-flames span:nth-child(2) {
    height: 25px;
    animation-delay: 0.1s;
}

.loading-flames span:nth-child(3) {
    animation-delay: 0.2s;
}

.profile-loading p {
    color: var(--text-muted);
    font-size: 1rem;
    animation: flicker 2s ease-in-out infinite;
}

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

/* Large Desktop */
@media (min-width: 1400px) {
    .volcanoes-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

/* Desktop */
@media (max-width: 1399px) {
    .volcanoes-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* Tablet Landscape */
@media (max-width: 1200px) {
    .volcanoes-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .profile-main {
        grid-template-columns: 1fr;
    }
    
    .info-section {
        max-height: none;
    }
    
    .volcano-map {
        height: 400px;
    }
}

/* Tablet Portrait */
@media (max-width: 992px) {
    .volcanoes-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .stats-bar {
        flex-wrap: wrap;
        gap: 20px;
        padding: 15px 20px;
    }
    
    .stat-divider {
        display: none;
    }
    
    .filter-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .volcano-name-large {
        font-size: 2.5rem;
    }
    
    .action-buttons {
        flex-wrap: wrap;
    }
    
    .action-btn span {
        display: none;
    }
    
    .action-btn {
        padding: 14px 20px;
    }
    
    .eruption-btn span,
    .flyover-btn span {
        display: inline;
    }
    
    .quick-facts-content {
        flex-wrap: wrap;
        gap: 20px;
    }
    
    .nav-btn {
        padding: 10px 15px;
    }
}

/* Mobile Landscape */
@media (max-width: 768px) {
    .volcanoes-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .main-title {
        font-size: 2rem;
    }
    
    .volcano-icon-animated {
        font-size: 2rem;
    }
    
    .title-wrapper {
        flex-direction: column;
        gap: 10px;
    }
    
    .stats-bar {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
    
    .volcanic-header {
        padding: 15px 20px 25px;
    }
    
    .filter-section {
        padding: 15px 20px;
    }
    
    .volcanoes-grid-section {
        padding: 20px;
    }
    
    /* Profile Page Mobile */
    .volcano-name-large {
        font-size: 2rem;
    }
    
    .volcano-native-name {
        font-size: 1rem;
    }
    
    .volcano-badges {
        gap: 10px;
    }
    
    .country-badge,
    .status-badge-large,
    .elevation-badge-large,
    .type-badge-large {
        padding: 8px 15px;
        font-size: 0.85rem;
    }
    
    .profile-main {
        padding: 0 20px 120px;
    }
    
    .volcano-map {
        height: 350px;
    }
    
    .map-controls-panel {
        position: relative;
        top: auto;
        right: auto;
        max-width: none;
        border-radius: 0;
        border-top: 1px solid var(--card-border);
    }
    
    .map-legend {
        position: relative;
        bottom: auto;
        left: auto;
        border-radius: 0;
        border-top: 1px solid var(--card-border);
    }
    
    .coordinates-display {
        position: relative;
        bottom: auto;
        right: auto;
        border-radius: 0;
        text-align: center;
        border-top: 1px solid var(--card-border);
    }
    
    .quick-facts-toggle {
        display: flex;
    }
    
    .quick-facts-panel.collapsed .quick-facts-content {
        display: none;
    }
    
    .quick-facts-content {
        flex-direction: column;
        gap: 15px;
        padding: 15px 20px;
    }
    
    .quick-fact {
        justify-content: flex-start;
    }
    
    .profile-navigation {
        display: none;
    }
    
    .hazards-grid {
        grid-template-columns: 1fr;
    }
    
    .flyover-ui {
        min-width: auto;
        width: calc(100% - 40px);
        max-width: 400px;
    }
    
    /* Reduce particle effects on mobile */
    .smoke-wisp {
        opacity: 0.3;
    }
    
    .ember {
        width: 3px;
        height: 3px;
    }
}

/* Mobile Portrait */
@media (max-width: 480px) {
    .volcanoes-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .volcano-card {
        border-radius: var(--border-radius);
    }
    
    .volcano-name {
        font-size: 0.85rem;
    }
    
    .volcano-info {
        padding: 10px;
    }
    
    .main-title {
        font-size: 1.6rem;
    }
    
    .subtitle {
        font-size: 0.9rem;
    }
    
    .back-button {
        width: 40px;
        height: 40px;
        top: 15px;
        left: 15px;
    }
    
    .search-input {
        padding: 12px 45px;
    }
    
    .filter-buttons {
        justify-content: center;
    }
    
    .filter-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .results-info {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    /* Profile Mobile */
    .profile-header {
        padding: 15px 20px 20px;
    }
    
    .profile-back {
        padding: 8px 15px;
    }
    
    .profile-back span {
        display: none;
    }
    
    .volcano-title-section {
        margin-top: 30px;
        margin-bottom: 20px;
    }
    
    .volcano-name-large {
        font-size: 1.6rem;
        letter-spacing: 1px;
    }
    
    .action-buttons {
        gap: 10px;
    }
    
    .action-btn {
        padding: 10px 15px;
        font-size: 0.85rem;
    }
    
    .eruption-btn span,
    .flyover-btn span {
        display: none;
    }
    
    .branch-header {
        padding: 12px;
    }
    
    .branch-icon {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .branch-title {
        font-size: 0.9rem;
    }
    
    .branch-items {
        padding: 0 12px 12px 55px;
    }
    
    .eruption-timeline,
    .cities-list,
    .hazards-grid,
    .events-timeline,
    .fun-facts-list {
        padding: 0 12px 12px 55px;
    }
    
    .eruption-content {
        padding: 20px;
    }
    
    .eruption-warning {
        padding: 10px 18px;
    }
    
    .eruption-warning span {
        font-size: 0.8rem;
        letter-spacing: 1px;
    }
    
    .eruption-stats {
        gap: 20px;
    }
    
    .eruption-stat .stat-value {
        font-size: 1.1rem;
    }
}

/* Extra Small Devices */
@media (max-width: 360px) {
    .volcanoes-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    
    .volcano-name {
        font-size: 0.8rem;
    }
    
    .rank-number {
        width: 25px;
        height: 25px;
        font-size: 0.6rem;
    }
    
    .elevation-badge {
        font-size: 0.6rem;
        padding: 3px 6px;
    }
    
    .status-badge {
        font-size: 0.6rem;
        padding: 3px 8px;
    }
    
    .main-title {
        font-size: 1.4rem;
    }
}

/* Reduce Motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .ember,
    .smoke-wisp,
    .ash-particle {
        display: none;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .volcano-card {
        border-width: 2px;
    }
    
    .filter-btn.active {
        border-width: 2px;
    }
    
    .status-badge,
    .elevation-badge {
        border: 1px solid currentColor;
    }
}

/* Print Styles */
@media print {
    .volcanic-background,
    .ember-container,
    .smoke-container,
    .scroll-top-btn,
    .filter-section,
    .volcanic-footer,
    .back-button {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .volcano-card {
        break-inside: avoid;
        border: 1px solid #ccc;
    }
}
