/* =========================================================================
   GL CHEMISTRY QUEST - LANDING PAGE
   Cyber-Voxel Synthwave Design
   Merged Styles: Scientific Futurism + Minecraft Voxel + Neon Synthwave
   ========================================================================= */

/* ===== COLOR SYSTEM (Merged Palette) ===== */
:root {
    /* Synthwave Neon Colors */
    --cyber-cyan: #00f3ff;
    --cyber-magenta: #ff00ff;
    --cyber-pink: #ff006e;
    --cyber-purple: #b026ff;
    --cyber-yellow: #ffed4e;
    --cyber-orange: #ff6b35;
    --cyber-green: #00ff41;
    --cyber-blue: #0d7fff;
    
    /* Voxel/Minecraft Colors */
    --voxel-grass: #7fc944;
    --voxel-dirt: #8b6914;
    --voxel-stone: #7f7f7f;
    --voxel-diamond: #4dd9ff;
    --voxel-gold: #ffaa00;
    --voxel-redstone: #ff0000;
    
    /* Scientific Dark Base */
    --cyber-dark-1: #0a0a12;
    --cyber-dark-2: #12121f;
    --cyber-dark-3: #1a1a2e;
    --cyber-dark-4: #242440;
    
    /* Glow/Shadow Effects */
    --glow-cyan: 0 0 20px var(--cyber-cyan), 0 0 40px var(--cyber-cyan), 0 0 60px var(--cyber-cyan);
    --glow-magenta: 0 0 20px var(--cyber-magenta), 0 0 40px var(--cyber-magenta);
    --glow-yellow: 0 0 20px var(--cyber-yellow), 0 0 40px var(--cyber-yellow);
    --glow-green: 0 0 20px var(--cyber-green), 0 0 40px var(--cyber-green);
    
    /* Voxel Shadows (Chunky Minecraft Style) */
    --voxel-shadow-sm: 4px 4px 0 rgba(0, 0, 0, 0.3);
    --voxel-shadow-md: 8px 8px 0 rgba(0, 0, 0, 0.4);
    --voxel-shadow-lg: 12px 12px 0 rgba(0, 0, 0, 0.5);
    --voxel-shadow-xl: 16px 16px 0 rgba(0, 0, 0, 0.6);
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;
}

/* ===== GLOBAL RESETS & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', sans-serif;
    background: var(--cyber-dark-1);
    color: #ffffff;
    overflow-x: hidden;
    position: relative;
    line-height: 1.6;
}

/* ===== ANIMATED BACKGROUNDS ===== */

/* Cyber Grid Background */
.cyber-grid-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(90deg, rgba(0, 243, 255, 0.03) 1px, transparent 1px),
        linear-gradient(rgba(0, 243, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 0;
    pointer-events: none;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* Voxel Particles (Minecraft-style floating blocks) */
.voxel-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    background: 
        radial-gradient(circle at 20% 30%, rgba(127, 201, 68, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(77, 217, 255, 0.05) 0%, transparent 50%);
}

/* Synthwave Lines */
.synthwave-lines {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 300px;
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(255, 0, 110, 0.05) 50%,
        rgba(0, 243, 255, 0.05) 100%
    );
    z-index: 0;
    pointer-events: none;
}

/* ===== HERO SECTION (Voxel + Synthwave Combined) ===== */
.hero-voxel {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: var(--space-2xl) var(--space-md);
    overflow: hidden;
    background: linear-gradient(
        135deg,
        var(--cyber-dark-1) 0%,
        var(--cyber-dark-2) 50%,
        var(--cyber-dark-3) 100%
    );
}

.hero-content-voxel {
    text-align: center;
    z-index: 10;
    max-width: 1200px;
    position: relative;
}

/* Synthwave Equalizer Background */
.synthwave-equalizer {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 600px;
    height: 300px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 10px;
    opacity: 0.15;
    z-index: 0;
}

.eq-bar {
    width: 40px;
    background: linear-gradient(
        180deg,
        var(--cyber-cyan) 0%,
        var(--cyber-magenta) 50%,
        var(--cyber-purple) 100%
    );
    animation: equalizer 1.5s ease-in-out infinite;
    box-shadow: 0 0 20px var(--cyber-cyan);
}

.eq-bar:nth-child(1) { animation-delay: 0s; }
.eq-bar:nth-child(2) { animation-delay: 0.2s; }
.eq-bar:nth-child(3) { animation-delay: 0.4s; }
.eq-bar:nth-child(4) { animation-delay: 0.6s; }
.eq-bar:nth-child(5) { animation-delay: 0.8s; }
.eq-bar:nth-child(6) { animation-delay: 1s; }
.eq-bar:nth-child(7) { animation-delay: 1.2s; }
.eq-bar:nth-child(8) { animation-delay: 1.4s; }

@keyframes equalizer {
    0%, 100% { height: 50px; }
    50% { height: 250px; }
}

/* Hero Badge (Voxel Style) */
.hero-badge-voxel {
    display: inline-block;
    background: linear-gradient(135deg, var(--cyber-cyan), var(--cyber-purple));
    color: var(--cyber-dark-1);
    padding: 0.75rem 1.5rem;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: var(--space-md);
    position: relative;
    box-shadow: var(--voxel-shadow-md), var(--glow-cyan);
    border: 3px solid var(--cyber-cyan);
    animation: badgeFloat 3s ease-in-out infinite;
}

@keyframes badgeFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.badge-icon {
    margin-right: 0.5rem;
    font-size: 1.2rem;
}

/* Hero Title (Blocky + Neon) */
.hero-title-voxel {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: var(--space-md);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: relative;
    z-index: 1;
}

.title-line {
    display: block;
    color: #ffffff;
    text-shadow: 
        4px 4px 0 var(--cyber-dark-4),
        0 0 30px var(--cyber-cyan);
}

.title-line.neon-glow {
    background: linear-gradient(
        90deg,
        var(--cyber-cyan) 0%,
        var(--cyber-magenta) 50%,
        var(--cyber-yellow) 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    filter: drop-shadow(0 0 20px var(--cyber-magenta));
    animation: neonPulse 2s ease-in-out infinite;
}

@keyframes neonPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

/* Hero Subtitle */
.hero-subtitle-voxel {
    font-size: clamp(1rem, 3vw, 1.5rem);
    color: var(--cyber-cyan);
    margin-bottom: var(--space-xl);
    text-shadow: 0 0 20px var(--cyber-cyan);
}

/* Voxel Stats Cubes (Minecraft Style) */
.voxel-stats {
    display: flex;
    justify-content: center;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
    flex-wrap: wrap;
}

.voxel-cube {
    width: 150px;
    height: 150px;
    position: relative;
    transform-style: preserve-3d;
    animation: cubeRotate 8s ease-in-out infinite;
}

.cube-face {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--cyber-purple), var(--cyber-magenta));
    border: 4px solid var(--cyber-cyan);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: var(--voxel-shadow-lg), var(--glow-cyan);
}

.cube-face.front {
    transform: translateZ(75px);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--cyber-yellow);
    text-shadow: var(--glow-yellow);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--cyber-cyan);
    text-transform: uppercase;
    letter-spacing: 2px;
}

@keyframes cubeRotate {
    0%, 100% { transform: rotateY(0deg) rotateX(0deg); }
    50% { transform: rotateY(10deg) rotateX(5deg); }
}

/* CTA Buttons (Voxel Style with Synthwave Glow) */
.hero-cta-voxel {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
    flex-wrap: wrap;
}

.btn-voxel {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 4px solid;
    position: relative;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    cursor: pointer;
    box-shadow: var(--voxel-shadow-md);
}

.btn-voxel.primary {
    background: linear-gradient(135deg, var(--cyber-cyan), var(--cyber-blue));
    border-color: var(--cyber-cyan);
    color: var(--cyber-dark-1);
}

.btn-voxel.primary:hover {
    transform: translateY(-8px);
    box-shadow: var(--voxel-shadow-xl), var(--glow-cyan);
}

.btn-voxel.primary.pulse-glow {
    animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: var(--voxel-shadow-md), 0 0 20px var(--cyber-cyan);
    }
    50% {
        box-shadow: var(--voxel-shadow-xl), 0 0 40px var(--cyber-cyan), 0 0 60px var(--cyber-cyan);
    }
}

.btn-voxel.secondary {
    background: transparent;
    border-color: var(--cyber-magenta);
    color: var(--cyber-magenta);
}

.btn-voxel.secondary:hover {
    background: var(--cyber-magenta);
    color: var(--cyber-dark-1);
    transform: translateY(-8px);
    box-shadow: var(--voxel-shadow-xl), var(--glow-magenta);
}

.btn-voxel.tertiary {
    background: linear-gradient(135deg, var(--cyber-yellow), var(--cyber-orange));
    border-color: var(--cyber-yellow);
    color: var(--cyber-dark-1);
}

.btn-voxel.tertiary:hover {
    transform: translateY(-8px);
    box-shadow: var(--voxel-shadow-xl), var(--glow-yellow);
}

.btn-voxel.mega {
    font-size: 1.5rem;
    padding: 2rem 3rem;
    background: linear-gradient(135deg, var(--cyber-cyan), var(--cyber-magenta), var(--cyber-yellow));
    border: 6px solid var(--cyber-cyan);
    box-shadow: var(--voxel-shadow-xl), var(--glow-cyan);
}

.btn-voxel.mega:hover {
    transform: scale(1.1) translateY(-10px);
}

.btn-icon, .mega-icon {
    font-size: 1.3em;
}

.btn-arrow, .mega-arrow {
    margin-left: auto;
    font-size: 1.2em;
}

/* Craft Hint (Minecraft Style) */
.craft-hint {
    color: var(--cyber-green);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-shadow: var(--glow-green);
}

.craft-icon {
    font-size: 1.2rem;
    animation: pickaxeSwing 2s ease-in-out infinite;
}

@keyframes pickaxeSwing {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(-20deg); }
}

/* ============================================
   PRIORITY ORDER & GRID SYSTEM - Home Page
   ============================================ */

/* Search & Order Controls Layout */
.search-order-controls-row {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

/* Priority Order Controls */
.home-order-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    padding: 15px;
    background: linear-gradient(135deg, rgba(102,126,234,0.1) 0%, rgba(118,75,162,0.1) 100%);
    border-radius: 12px;
    border: 1px solid rgba(102,126,234,0.2);
}

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

.order-label-home {
    font-family: 'Orbitron', monospace;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--cyber-cyan);
    text-shadow: 0 0 10px var(--cyber-cyan);
    white-space: nowrap;
}

.order-label-home.secondary {
    color: var(--cyber-magenta);
    text-shadow: 0 0 10px var(--cyber-magenta);
}

.order-dropdown-home {
    padding: 8px 12px;
    background: rgba(10,10,18,0.8);
    border: 2px solid rgba(102,126,234,0.3);
    border-radius: 8px;
    color: white;
    font-family: 'Orbitron', monospace;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(0,0,0,0.3);
}

.order-dropdown-home:hover {
    border-color: var(--cyber-cyan);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.4);
}

.order-dropdown-home.secondary:hover {
    border-color: var(--cyber-magenta);
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.4);
}

.order-dropdown-home:focus {
    outline: none;
    border-color: var(--cyber-yellow);
    box-shadow: 0 0 25px rgba(255, 237, 78, 0.5);
}

.show-all-btn-home {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, rgba(0,243,255,0.2) 0%, rgba(179,38,255,0.2) 100%);
    border: 2px solid var(--cyber-cyan);
    border-radius: 8px;
    color: white;
    font-family: 'Orbitron', monospace;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(0,243,255,0.3);
    margin-left: auto;
}

.show-all-btn-home .btn-icon {
    font-size: 1.2rem;
}

.show-all-btn-home:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, rgba(0,243,255,0.3) 0%, rgba(179,38,255,0.3) 100%);
    box-shadow: 0 0 25px rgba(0,243,255,0.5), 0 5px 20px rgba(0,0,0,0.3);
}

.show-all-btn-home:active {
    transform: translateY(0px);
}

/* All Elements Grid Container */
.all-elements-grid-container {
    margin-top: 30px;
    padding: 25px;
    background: linear-gradient(180deg, rgba(10,10,18,0.95) 0%, rgba(22,33,62,0.95) 100%);
    border-radius: 15px;
    border: 2px solid rgba(102,126,234,0.3);
    box-shadow: 
        0 10px 40px rgba(0,0,0,0.5),
        inset 0 0 50px rgba(0,243,255,0.05);
    animation: slideInGrid 0.5s ease;
}

.grid-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(102,126,234,0.3);
}

.grid-title {
    font-family: 'Orbitron', monospace;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--cyber-cyan);
    text-shadow: 0 0 20px var(--cyber-cyan);
    margin: 0;
}

.grid-title span {
    color: var(--cyber-magenta);
    text-shadow: 0 0 20px var(--cyber-magenta);
}

.close-grid-btn {
    padding: 8px 20px;
    background: linear-gradient(135deg, rgba(255,0,110,0.2) 0%, rgba(255,107,53,0.2) 100%);
    border: 2px solid var(--cyber-pink);
    border-radius: 8px;
    color: white;
    font-family: 'Orbitron', monospace;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-grid-btn:hover {
    background: linear-gradient(135deg, rgba(255,0,110,0.3) 0%, rgba(255,107,53,0.3) 100%);
    box-shadow: 0 0 20px rgba(255,0,110,0.5);
    transform: scale(1.05);
}

/* Scrollable Grid */
.elements-scrollable-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    max-height: 80vh;
    overflow-y: auto;
    padding: 10px;
    scrollbar-width: thin;
    scrollbar-color: var(--cyber-cyan) rgba(10,10,18,0.5);
}

.elements-scrollable-grid::-webkit-scrollbar {
    width: 12px;
}

.elements-scrollable-grid::-webkit-scrollbar-track {
    background: rgba(10,10,18,0.5);
    border-radius: 10px;
}

.elements-scrollable-grid::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--cyber-cyan) 0%, var(--cyber-magenta) 100%);
    border-radius: 10px;
    border: 2px solid rgba(10,10,18,0.5);
}

.elements-scrollable-grid::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--cyber-magenta) 0%, var(--cyber-yellow) 100%);
}

/* Mini Element Card */
.element-mini-card {
    background: linear-gradient(135deg, rgba(26,26,46,0.9) 0%, rgba(18,18,31,0.9) 100%);
    border-radius: 12px;
    border: 2px solid rgba(102,126,234,0.3);
    padding: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    animation: fadeInCard 0.4s ease both;
    box-shadow: 
        0 5px 20px rgba(0,0,0,0.3),
        0 0 15px rgba(0,243,255,0.1);
}

.element-mini-card:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: var(--cyber-cyan);
    box-shadow: 
        0 10px 30px rgba(0,0,0,0.5),
        0 0 30px rgba(0,243,255,0.4);
}

.element-mini-header {
    padding: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.element-mini-number {
    font-size: 0.85rem;
    opacity: 0.9;
}

.element-mini-symbol {
    font-size: 1.8rem;
    font-weight: 900;
}

.element-mini-body {
    padding: 15px;
    background: rgba(10,10,18,0.6);
}

.element-mini-name {
    font-family: 'Orbitron', monospace;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    margin: 0 0 10px 0;
    text-align: center;
}

.element-mini-info {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
}

.mini-state-badge,
.mini-mass-badge {
    font-size: 0.75rem;
    padding: 4px 8px;
    background: rgba(0,243,255,0.1);
    border: 1px solid rgba(0,243,255,0.3);
    border-radius: 5px;
    color: var(--cyber-cyan);
    font-family: 'Orbitron', monospace;
}

.element-mini-props {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.8);
    font-family: 'Orbitron', monospace;
}

.element-mini-props span {
    padding: 3px 0;
}

.element-mini-details-btn {
    width: 100%;
    padding: 10px;
    background: linear-gradient(90deg, var(--cyber-cyan) 0%, var(--cyber-magenta) 100%);
    border: none;
    color: white;
    font-family: 'Orbitron', monospace;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.element-mini-details-btn:hover {
    background: linear-gradient(90deg, var(--cyber-magenta) 0%, var(--cyber-yellow) 100%);
    box-shadow: 0 0 20px rgba(255,237,78,0.5);
}

/* Animations */
@keyframes slideInGrid {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInCard {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .search-order-controls-row {
        gap: 15px;
    }

    .home-order-controls {
        padding: 12px;
        gap: 10px;
    }

    .order-group-home {
        flex: 1;
        min-width: 140px;
    }

    .order-label-home {
        font-size: 0.75rem;
    }

    .order-dropdown-home {
        padding: 6px 10px;
        font-size: 0.75rem;
        width: 100%;
    }

    .show-all-btn-home {
        width: 100%;
        justify-content: center;
        margin-left: 0;
    }

    .elements-scrollable-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 15px;
        max-height: 70vh;
    }

    .grid-title {
        font-size: 1.1rem;
    }

    .element-mini-symbol {
        font-size: 1.5rem;
    }
}

/* ============================================
   CHEMISTRY NEWS BADGE - Special Button
   ============================================ */
.chem-news-badge {
    margin-top: 2rem;
    position: relative;
    display: inline-block;
    animation: floatNewsBadge 3s ease-in-out infinite;
}

.news-badge-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 150%;
    background: radial-gradient(circle, rgba(0, 243, 255, 0.3) 0%, transparent 70%);
    animation: pulseNewsGlow 2s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

.chem-news-btn {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, 
        rgba(0, 243, 255, 0.15) 0%, 
        rgba(179, 38, 255, 0.15) 100%);
    border: 2px solid var(--cyber-cyan);
    border-radius: 12px;
    color: white;
    text-decoration: none;
    font-family: 'Orbitron', monospace;
    font-weight: 600;
    box-shadow: 
        0 0 20px rgba(0, 243, 255, 0.4),
        0 0 40px rgba(0, 243, 255, 0.2),
        inset 0 0 30px rgba(0, 243, 255, 0.1),
        var(--voxel-shadow-md);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    overflow: hidden;
}

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

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

.chem-news-btn:hover {
    transform: translateY(-5px) scale(1.05);
    border-color: var(--cyber-magenta);
    box-shadow: 
        0 0 30px rgba(255, 0, 255, 0.6),
        0 0 60px rgba(255, 0, 255, 0.3),
        0 10px 40px rgba(0, 0, 0, 0.5),
        inset 0 0 40px rgba(255, 0, 255, 0.2);
    background: linear-gradient(135deg, 
        rgba(255, 0, 255, 0.2) 0%, 
        rgba(0, 243, 255, 0.2) 100%);
}

.chem-news-btn:active {
    transform: translateY(-2px) scale(1.02);
}

.news-icon {
    font-size: 2rem;
    animation: rotateNews 4s linear infinite;
    filter: drop-shadow(0 0 10px var(--cyber-cyan));
}

.news-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
}

.news-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--cyber-cyan);
    font-weight: 400;
    text-shadow: 0 0 10px var(--cyber-cyan);
}

.news-title {
    font-size: 1.1rem;
    font-weight: 700;
    background: linear-gradient(90deg, 
        var(--cyber-cyan) 0%, 
        var(--cyber-magenta) 50%, 
        var(--cyber-yellow) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 3s linear infinite;
}

.news-pulse {
    font-size: 1.5rem;
    animation: pulseMicroscope 1.5s ease-in-out infinite;
    filter: drop-shadow(0 0 15px var(--cyber-magenta));
}

/* Animations for Chemistry News Badge */
@keyframes floatNewsBadge {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

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

@keyframes rotateNews {
    0%, 100% {
        transform: rotate(0deg) scale(1);
    }
    25% {
        transform: rotate(-10deg) scale(1.1);
    }
    50% {
        transform: rotate(0deg) scale(1);
    }
    75% {
        transform: rotate(10deg) scale(1.1);
    }
}

@keyframes pulseMicroscope {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }
}

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

/* Mobile Responsive for Chemistry News Badge */
@media (max-width: 768px) {
    .chem-news-btn {
        padding: 0.8rem 1.5rem;
        gap: 0.8rem;
    }
    
    .news-icon {
        font-size: 1.5rem;
    }
    
    .news-title {
        font-size: 0.95rem;
    }
    
    .news-label {
        font-size: 0.65rem;
    }
    
    .news-pulse {
        font-size: 1.2rem;
    }
}

/* 3D Voxel Element Display */
.hero-voxel-display {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    width: 250px;
    height: 250px;
    animation: elementFloat 4s ease-in-out infinite;
}

.voxel-element {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--cyber-purple), var(--cyber-magenta));
    border: 6px solid var(--cyber-cyan);
    box-shadow: var(--voxel-shadow-xl), var(--glow-cyan);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    transform-style: preserve-3d;
}

.element-symbol {
    font-size: 5rem;
    font-weight: 900;
    color: var(--cyber-yellow);
    text-shadow: var(--glow-yellow);
}

.element-number {
    font-size: 2rem;
    color: var(--cyber-cyan);
    position: absolute;
    top: 10px;
    left: 20px;
}

.element-name {
    font-size: 1.2rem;
    color: var(--cyber-cyan);
    text-transform: uppercase;
    letter-spacing: 2px;
}

@keyframes elementFloat {
    0%, 100% { transform: translateY(-50%) rotateY(0deg); }
    50% { transform: translateY(-60%) rotateY(15deg); }
}

/* ===== FEATURES GRID (Minecraft Blocks) ===== */
.features-voxel {
    padding: var(--space-3xl) var(--space-md);
    background: var(--cyber-dark-2);
    position: relative;
}

.container-voxel {
    max-width: 1200px;
    margin: 0 auto;
}

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

.section-title-voxel {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    color: var(--cyber-cyan);
    text-shadow: var(--glow-cyan);
    margin-bottom: var(--space-md);
}

.title-pixel {
    color: var(--cyber-magenta);
    font-size: 0.8em;
}

.synthwave-divider {
    width: 200px;
    height: 4px;
    background: linear-gradient(90deg, var(--cyber-cyan), var(--cyber-magenta), var(--cyber-yellow));
    margin: 0 auto;
    box-shadow: var(--glow-cyan);
}

.features-grid-voxel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
}

/* Feature Block (Minecraft Block Style) */
.feature-block {
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
}

.feature-block:hover {
    transform: translateY(-10px);
}

.block-top {
    position: absolute;
    top: -10px;
    left: 10px;
    right: -10px;
    height: 10px;
    background: linear-gradient(135deg, rgba(0, 243, 255, 0.3), rgba(255, 0, 255, 0.3));
    border: 2px solid var(--cyber-cyan);
    transform: skewY(-5deg);
}

.block-front {
    background: var(--cyber-dark-3);
    border: 4px solid var(--cyber-cyan);
    padding: var(--space-xl);
    position: relative;
    overflow: hidden;
    box-shadow: var(--voxel-shadow-lg);
}

.block-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
    pointer-events: none;
    animation: glowPulse 3s ease-in-out infinite;
}

.block-glow.cyan { background: radial-gradient(circle, var(--cyber-cyan), transparent); }
.block-glow.magenta { background: radial-gradient(circle, var(--cyber-magenta), transparent); }
.block-glow.yellow { background: radial-gradient(circle, var(--cyber-yellow), transparent); }
.block-glow.green { background: radial-gradient(circle, var(--cyber-green), transparent); }
.block-glow.orange { background: radial-gradient(circle, var(--cyber-orange), transparent); }
.block-glow.purple { background: radial-gradient(circle, var(--cyber-purple), transparent); }

@keyframes glowPulse {
    0%, 100% { opacity: 0.1; }
    50% { opacity: 0.2; }
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: var(--space-md);
}

.block-front h3 {
    font-size: 1.5rem;
    color: var(--cyber-cyan);
    margin-bottom: var(--space-sm);
}

.block-front p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

/* ===== SCIENTIFIC PROOF (Synthwave Waves) ===== */
.science-proof-voxel {
    padding: var(--space-3xl) var(--space-md);
    background: var(--cyber-dark-1);
    position: relative;
    overflow: hidden;
}

.wave-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
}

.synthwave-svg {
    width: 100%;
    height: 100%;
}

.wave-path {
    fill: none;
    stroke-width: 3;
    animation: waveFlow 5s ease-in-out infinite;
}

.wave-1 {
    stroke: var(--cyber-cyan);
    animation-delay: 0s;
}

.wave-2 {
    stroke: var(--cyber-magenta);
    animation-delay: 0.5s;
}

.wave-3 {
    stroke: var(--cyber-yellow);
    animation-delay: 1s;
}

@keyframes waveFlow {
    0%, 100% { stroke-dashoffset: 0; }
    50% { stroke-dashoffset: 100; }
}

.proof-content-voxel {
    text-align: center;
    position: relative;
    z-index: 1;
}

.proof-title-voxel {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    margin-bottom: var(--space-xl);
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.neon-text {
    display: inline-block;
    text-shadow: 0 0 20px currentColor, 0 0 40px currentColor;
}

.neon-text.cyan { color: var(--cyber-cyan); }
.neon-text.magenta { color: var(--cyber-magenta); }
.neon-text.yellow { color: var(--cyber-yellow); }

/* Proof Stats (Synthwave Bars) */
.proof-stats-voxel {
    display: flex;
    justify-content: center;
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
    flex-wrap: wrap;
}

.proof-stat-block {
    text-align: center;
    position: relative;
}

.stat-wave-bar {
    width: 80px;
    height: 200px;
    background: linear-gradient(
        180deg,
        var(--cyber-cyan) 0%,
        var(--cyber-magenta) 50%,
        var(--cyber-yellow) 100%
    );
    margin: 0 auto var(--space-md);
    position: relative;
    box-shadow: var(--glow-cyan);
    animation: barGrow 2s ease-out forwards;
    height: calc(var(--bar-height) * 2);
}

@keyframes barGrow {
    from { height: 0; }
    to { height: calc(var(--bar-height) * 2); }
}

.stat-percentage {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--cyber-yellow);
    text-shadow: var(--glow-yellow);
}

.stat-name {
    font-size: 0.9rem;
    color: var(--cyber-cyan);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.proof-desc {
    max-width: 700px;
    margin: 0 auto var(--space-xl);
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    line-height: 1.8;
}

/* ===== HOW IT WORKS (Blocky Steps) ===== */
.how-it-works-voxel {
    padding: var(--space-3xl) var(--space-md);
    background: var(--cyber-dark-3);
}

.steps-voxel {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.step-voxel {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    position: relative;
}

.step-number-cube {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--cyber-purple), var(--cyber-magenta));
    border: 4px solid var(--cyber-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--cyber-yellow);
    box-shadow: var(--voxel-shadow-lg), var(--glow-cyan);
    flex-shrink: 0;
}

.step-content h3 {
    font-size: 1.5rem;
    color: var(--cyber-cyan);
    margin-bottom: var(--space-xs);
}

.step-content p {
    color: rgba(255, 255, 255, 0.8);
}

.step-connector {
    position: absolute;
    left: 40px;
    top: 100%;
    width: 4px;
    height: 60px;
    background: linear-gradient(180deg, var(--cyber-cyan), transparent);
}

.step-voxel:last-child .step-connector {
    display: none;
}

/* ===== ECOSYSTEM ===== */
.ecosystem-voxel {
    padding: var(--space-3xl) var(--space-md);
    background: var(--cyber-dark-2);
}

.ecosystem-subtitle {
    text-align: center;
    color: var(--cyber-cyan);
    font-size: 1.2rem;
    margin-bottom: var(--space-2xl);
}

.ecosystem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-xl);
}

.ecosystem-card {
    background: var(--cyber-dark-3);
    border: 4px solid var(--cyber-cyan);
    padding: var(--space-xl);
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: var(--voxel-shadow-md);
}

.ecosystem-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--voxel-shadow-xl), var(--glow-cyan);
}

.ecosystem-card.current {
    border-color: var(--cyber-yellow);
    box-shadow: var(--voxel-shadow-lg), var(--glow-yellow);
}

.card-badge {
    position: absolute;
    top: -15px;
    right: 20px;
    background: var(--cyber-yellow);
    color: var(--cyber-dark-1);
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: var(--voxel-shadow-sm);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: var(--space-sm);
}

.ecosystem-card h3 {
    font-size: 1.3rem;
    color: var(--cyber-cyan);
    margin-bottom: var(--space-sm);
}

.ecosystem-card p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--space-md);
}

.card-link {
    color: var(--cyber-magenta);
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
}

.card-link:hover {
    color: var(--cyber-yellow);
    text-shadow: var(--glow-yellow);
}

/* ===== FINAL CTA ===== */
.final-cta-voxel {
    padding: var(--space-3xl) var(--space-md);
    background: var(--cyber-dark-1);
    position: relative;
    overflow: hidden;
}

.cta-glow-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(
        circle,
        rgba(0, 243, 255, 0.2) 0%,
        rgba(255, 0, 255, 0.1) 50%,
        transparent 100%
    );
    animation: glowRotate 10s linear infinite;
}

@keyframes glowRotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.cta-content-voxel {
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta-title-voxel {
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 900;
    margin-bottom: var(--space-md);
    color: #ffffff;
}

.cta-subtitle-voxel {
    font-size: 1.2rem;
    color: var(--cyber-cyan);
    margin-bottom: var(--space-xl);
}

.cta-features {
    display: flex;
    justify-content: center;
    gap: var(--space-lg);
    margin-top: var(--space-lg);
    flex-wrap: wrap;
}

.cta-feature {
    color: var(--cyber-green);
    font-weight: 600;
    text-shadow: var(--glow-green);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .hero-voxel-display {
        display: none;
    }
    
    .voxel-stats {
        gap: var(--space-md);
    }
    
    .voxel-cube {
        width: 120px;
        height: 120px;
    }
}

@media (max-width: 768px) {
    .hero-voxel {
        padding: var(--space-xl) var(--space-sm);
        min-height: auto;
    }
    
    .hero-title-voxel {
        font-size: 2rem;
    }
    
    .hero-subtitle-voxel {
        font-size: 1rem;
    }
    
    .hero-cta-voxel {
        flex-direction: column;
        align-items: stretch;
        gap: var(--space-md);
    }
    
    .btn-voxel {
        width: 100%;
        justify-content: center;
        padding: var(--voxel-2x) var(--voxel-3x);
        font-size: 0.95rem;
    }
    
    .btn-voxel.mega {
        font-size: 1.2rem;
        padding: var(--voxel-3x) var(--voxel-4x);
    }
    
    .features-grid-voxel {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .feature-block {
        margin-bottom: var(--space-md);
    }
    
    .proof-stats-voxel {
        flex-direction: column;
        align-items: center;
        gap: var(--space-lg);
    }
    
    .step-voxel {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    .step-connector {
        display: none;
    }
    
    .step-number-cube {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }
    
    .ecosystem-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .synthwave-equalizer {
        max-width: 100%;
        height: 200px;
    }
    
    .eq-bar {
        width: 30px;
    }
}

@media (max-width: 480px) {
    .hero-badge-voxel {
        font-size: 0.7rem;
        padding: 0.5rem 1rem;
        letter-spacing: 1px;
    }
    
    .hero-title-voxel {
        font-size: 1.75rem;
    }
    
    .title-line {
        font-size: 1.5rem;
    }
    
    .synthwave-equalizer {
        max-width: 250px;
        height: 120px;
    }
    
    .eq-bar {
        width: 15px;
        gap: 5px;
    }
    
    .voxel-cube {
        width: 90px;
        height: 90px;
    }
    
    .stat-number {
        font-size: 1.75rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
    
    .btn-voxel {
        font-size: 0.85rem;
        padding: var(--voxel-2x);
    }
    
    .btn-voxel.mega {
        font-size: 1rem;
        padding: var(--voxel-2x);
    }
    
    .mega-text {
        font-size: 0.9rem;
    }
    
    .feature-block {
        padding: var(--space-md);
    }
    
    .block-front {
        padding: var(--space-lg);
    }
    
    .feature-icon {
        font-size: 2.5rem;
    }
    
    .section-title-voxel {
        font-size: 1.75rem;
    }
    
    .proof-title-voxel {
        font-size: 1.5rem;
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .cta-title-voxel {
        font-size: 1.75rem;
    }
}


/* ============================================
   ELEMENT SEARCH SECTION - VOXEL STYLE
   ============================================ */
.element-search-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    position: relative;
    overflow: visible;
    z-index: 1000;
}

.element-search-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(90deg, rgba(102,126,234,0.05) 1px, transparent 1px),
        linear-gradient(0deg, rgba(102,126,234,0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
}

.search-subtitle {
    text-align: center;
    color: #a8b2d1;
    font-size: 1.1rem;
    margin-top: 10px;
    margin-bottom: 30px;
    font-weight: 300;
}

.element-search-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto 40px;
    z-index: 10000;
}

.search-box-voxel {
    display: flex;
    gap: 10px;
    align-items: center;
    background: rgba(255,255,255,0.05);
    padding: 15px;
    border-radius: 15px;
    border: 2px solid rgba(102,126,234,0.3);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3),
                inset 0 1px 0 rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.search-box-voxel:hover {
    border-color: rgba(102,126,234,0.6);
    box-shadow: 0 15px 40px rgba(102,126,234,0.2),
                inset 0 1px 0 rgba(255,255,255,0.1);
}

.search-input-voxel {
    flex: 1;
    background: rgba(0,0,0,0.3);
    border: 2px solid transparent;
    border-radius: 10px;
    padding: 15px 20px;
    font-size: 1.1rem;
    color: #fff;
    outline: none;
    transition: all 0.3s ease;
}

.search-input-voxel:focus {
    border-color: #667eea;
    background: rgba(0,0,0,0.5);
    box-shadow: 0 0 20px rgba(102,126,234,0.3);
}

.search-input-voxel::placeholder {
    color: rgba(255,255,255,0.5);
}

.search-btn-voxel,
.clear-btn-voxel {
    padding: 15px 30px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.search-btn-voxel {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 5px 15px rgba(102,126,234,0.4);
}

.search-btn-voxel:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 20px rgba(102,126,234,0.6);
}

.clear-btn-voxel {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    box-shadow: 0 5px 15px rgba(240,147,251,0.4);
}

.clear-btn-voxel:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 20px rgba(240,147,251,0.6);
}

/* Search Suggestions Dropdown */
.search-suggestions-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 10px;
    background: rgba(20,20,40,0.98);
    border: 2px solid rgba(102,126,234,0.3);
    border-radius: 10px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 99999;
    display: none;
    backdrop-filter: blur(20px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.search-suggestion-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(102,126,234,0.1);
}

.search-suggestion-item:hover {
    background: linear-gradient(135deg, rgba(102,126,234,0.2) 0%, rgba(118,75,162,0.2) 100%);
    transform: translateX(5px);
}

.suggestion-symbol {
    font-size: 2rem;
    font-weight: bold;
    color: #667eea;
    min-width: 60px;
    text-align: center;
    background: rgba(102,126,234,0.1);
    padding: 10px;
    border-radius: 8px;
}

.suggestion-info {
    flex: 1;
}

.suggestion-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 3px;
}

.suggestion-number {
    font-size: 0.9rem;
    color: #a8b2d1;
}

/* Search Results Container */
.search-results-container {
    max-width: 1000px;
    margin: 0 auto;
    display: none;
    z-index: 9999;
    position: relative;
}

/* Element Result Card */
.element-result-card {
    background: rgba(20,20,40,0.8);
    border-radius: 20px;
    overflow: hidden;
    border: 2px solid rgba(102,126,234,0.3);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    backdrop-filter: blur(20px);
}

.element-result-header {
    padding: 40px;
    display: flex;
    align-items: center;
    gap: 30px;
    position: relative;
    overflow: hidden;
}

.element-result-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotateGlow 10s linear infinite;
}

@keyframes rotateGlow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.element-symbol-large {
    font-size: 5rem;
    font-weight: 900;
    color: white;
    text-shadow: 0 0 30px rgba(255,255,255,0.5);
    min-width: 150px;
    text-align: center;
    z-index: 1;
}

.element-basic-info {
    flex: 1;
    z-index: 1;
}

.element-name {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.element-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 1rem;
}

.element-meta span {
    background: rgba(0,0,0,0.3);
    padding: 8px 15px;
    border-radius: 8px;
    color: #fff;
    font-weight: 500;
}

.element-classification {
    padding: 20px 40px;
    text-align: center;
    background: rgba(0,0,0,0.2);
}

.classification-badge {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Properties Grid */
.element-properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 40px;
}

.property-block {
    background: linear-gradient(135deg, rgba(102,126,234,0.1) 0%, rgba(118,75,162,0.1) 100%);
    border: 2px solid rgba(102,126,234,0.2);
    border-radius: 15px;
    padding: 25px;
    transition: all 0.3s ease;
}

.property-block:hover {
    transform: translateY(-5px);
    border-color: rgba(102,126,234,0.5);
    box-shadow: 0 10px 30px rgba(102,126,234,0.3);
}

.property-block h3 {
    color: #667eea;
    font-size: 1.3rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.property-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.property-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0,0,0,0.2);
    padding: 12px;
    border-radius: 8px;
}

.prop-icon {
    font-size: 1.5rem;
    min-width: 30px;
}

.prop-label {
    color: #a8b2d1;
    font-weight: 500;
}

.prop-value {
    margin-left: auto;
    color: #fff;
    font-weight: 600;
    font-size: 1.05rem;
}

.property-block.full-width {
    grid-column: 1 / -1;
}

.industrial-use-card {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(0,0,0,0.2);
    padding: 20px;
    border-radius: 10px;
    font-size: 1.2rem;
}

.industrial-icon {
    font-size: 2.5rem;
}

.industrial-text {
    color: #fff;
    font-weight: 600;
}

/* Action Buttons */
.element-actions {
    display: flex;
    gap: 15px;
    padding: 30px 40px;
    background: rgba(0,0,0,0.2);
    justify-content: center;
    flex-wrap: wrap;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
}

.quiz-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 5px 15px rgba(102,126,234,0.4);
}

.quiz-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102,126,234,0.6);
}

.report-btn {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    box-shadow: 0 5px 15px rgba(240,147,251,0.4);
}

.report-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(240,147,251,0.6);
}

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

/* No Results Message */
.no-results-message {
    text-align: center;
    padding: 60px 20px;
    color: #a8b2d1;
}

.no-results-icon {
    font-size: 5rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.no-results-message h3 {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 10px;
}

.no-results-message p {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.search-hint {
    color: #667eea;
    font-style: italic;
}

/* Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   COMPACT SEARCH MODE - Top Navigation Style
   ============================================ */
.element-search-compact {
    padding: 25px 20px !important;
    background: linear-gradient(180deg, 
        rgba(26,26,46,0.95) 0%, 
        rgba(22,33,62,0.85) 100%) !important;
    border-bottom: 2px solid rgba(102,126,234,0.2);
    position: relative;
    z-index: 1000;
    overflow: visible !important;
}

.element-search-compact::before {
    background-size: 30px 30px !important;
    opacity: 0.3;
}

.element-search-compact .section-header-voxel {
    display: none;
}

.element-search-compact .element-search-container {
    max-width: 1200px;
    margin: 0 auto;
    z-index: 10000;
}

.element-search-compact .search-box-voxel {
    padding: 10px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(102,126,234,0.25);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.element-search-compact .search-input-voxel {
    padding: 12px 18px;
    font-size: 1rem;
    background: rgba(0,0,0,0.25);
}

.element-search-compact .search-btn-voxel,
.element-search-compact .clear-btn-voxel {
    padding: 12px 24px;
    font-size: 0.95rem;
}

.element-search-compact .search-suggestions-dropdown {
    margin-top: 8px;
    max-height: 400px;
    border: 1px solid rgba(102,126,234,0.3);
}

/* Smooth transition to Hero Section */
.element-search-compact + .hero-voxel {
    margin-top: 0;
    padding-top: 80px;
    position: relative;
}

.element-search-compact + .hero-voxel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(180deg, 
        rgba(22,33,62,0.5) 0%, 
        transparent 100%);
    pointer-events: none;
    z-index: 0;
}

/* Results in compact mode */
.element-search-compact .search-results-container {
    margin-top: 20px;
    animation: slideInDown 0.4s ease;
}

.element-search-compact .element-result-card {
    max-width: 1400px;
    margin: 0 auto;
}

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

/* Mobile adjustments */
@media (max-width: 768px) {
    .element-search-compact {
        padding: 20px 15px !important;
    }

    .element-search-compact .search-box-voxel {
        flex-direction: column;
        padding: 8px;
        gap: 8px;
    }

    .element-search-compact .search-input-voxel {
        padding: 10px 15px;
        font-size: 0.95rem;
    }

    .element-search-compact .search-btn-voxel,
    .element-search-compact .clear-btn-voxel {
        padding: 10px 18px;
        font-size: 0.9rem;
        width: 100%;
    }
    
    .element-search-compact + .hero-voxel {
        padding-top: 60px;
    }
}

/* Ensure search stays above hero */
.gl-navigation + .element-search-compact {
    margin-top: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .search-box-voxel {
        flex-direction: column;
    }

    .element-result-header {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
    }

    .element-symbol-large {
        font-size: 4rem;
    }

    .element-name {
        font-size: 2rem;
    }

    .element-meta {
        justify-content: center;
    }

    .element-properties-grid {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .element-actions {
        flex-direction: column;
        padding: 20px;
    }

    .action-btn {
        width: 100%;
        justify-content: center;
    }
}
