/* Experimental Features Page Styles */
:root {
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --neon-green: #00ff88;
    --neon-red: #ff3333;
    --battery-color: #00ff88;
}

body {
    background-color: #0a0a0a;
    color: #fff;
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    cursor: auto !important;
    /* Restore Native Cursor */
}

/* Hide broken custom cursor on this page */
.cursor-dot,
.cursor-outline {
    display: none !important;
}

/* Ensure Map Interactions */
path.city-path {
    cursor: pointer !important;
    pointer-events: all !important;
}

/* Feature Containers */
.experiment-section {
    padding: 80px 20px;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid var(--glass-border);
}

.exp-header {
    text-align: center;
    margin-bottom: 40px;
}

.exp-header h2 {
    font-family: 'Exo 2', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.exp-container {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 30px;
    width: 100%;
    max-width: 1000px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

/* 1. Thermal Scanner */
.thermal-viewport {
    position: relative;
    height: 500px;
    background: #111;
    border-radius: 10px;
    overflow: hidden;
    cursor: crosshair;
}

.thermal-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.8) contrast(1.2) hue-rotate(-50deg);
    /* Fake thermal look */
    transition: filter 0.5s;
}

.thermal-viewport.scanning .thermal-img {
    filter: brightness(1.2) contrast(1.5) hue-rotate(0deg);
    /* "Analyzed" look */
}

.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--neon-cyan);
    box-shadow: 0 0 10px var(--neon-cyan);
    opacity: 0;
}

.thermal-viewport.scanning .scan-line {
    animation: scanMove 2s infinite linear;
    opacity: 1;
}

@keyframes scanMove {
    0% {
        top: 0;
    }

    100% {
        top: 100%;
    }
}

.hotspot-box {
    position: absolute;
    border: 2px solid var(--neon-red);
    box-shadow: 0 0 10px var(--neon-red);
    background: rgba(255, 0, 0, 0.1);
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.hotspot-box.visible {
    opacity: 1;
    transform: scale(1);
}

.hotspot-label {
    background: var(--neon-red);
    color: #fff;
    font-size: 0.8rem;
    padding: 2px 5px;
    margin-bottom: -20px;
    font-weight: bold;
}

.scan-controls {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* 2. Battery Simulator */
.battery-sim-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.appliances-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.appliance-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: #aaa;
    padding: 20px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s;
}

.appliance-btn i {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.appliance-btn.active {
    background: rgba(0, 255, 136, 0.1);
    border-color: var(--neon-green);
    color: var(--neon-green);
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.2);
}

.battery-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.battery-display {
    width: 120px;
    height: 200px;
    border: 5px solid #fff;
    border-radius: 10px;
    position: relative;
    padding: 5px;
    margin-bottom: 20px;
}

.battery-display::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 10px;
    background: #fff;
    border-radius: 5px 5px 0 0;
}

.battery-liquid {
    position: absolute;
    bottom: 5px;
    left: 5px;
    width: calc(100% - 10px);
    height: 100%;
    background: var(--battery-color);
    border-radius: 5px;
    transition: height 0.5s, background-color 0.5s;
    box-shadow: 0 0 20px var(--battery-color);
}

.battery-time {
    font-size: 2rem;
    font-weight: bold;
    font-family: 'Exo 2';
}

/* 3. Solar Map */
.map-wrapper {
    position: relative;
    width: 100%;
    height: 500px;
    /* SVG container height */
    background: #1a1a1a;
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Simple Turkey SVG CSS mostly generated inline for paths, 
   but specific hover effects here */
path.city-path {
    fill: #333;
    stroke: #555;
    stroke-width: 1;
    transition: 0.3s;
    cursor: pointer;
}

path.city-path:hover {
    fill: var(--neon-cyan);
    stroke: #fff;
}

.map-tooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid var(--neon-cyan);
    padding: 15px;
    border-radius: 8px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s;
    z-index: 9999;
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.3);
}

.map-tooltip h4 {
    color: var(--neon-cyan);
    margin: 0 0 5px 0;
}

@media (max-width: 768px) {
    .battery-sim-grid {
        grid-template-columns: 1fr;
    }
}

/* 4. Roof Studio */
.studio-wrapper {
    display: flex;
    gap: 30px;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
}

.studio-grid {
    display: grid;
    grid-template-columns: repeat(10, 30px);
    grid-template-rows: repeat(10, 30px);
    gap: 2px;
    background: #222;
    padding: 10px;
    border-radius: 5px;
}

.grid-cell {
    width: 30px;
    height: 30px;
    background: #333;
    cursor: pointer;
    transition: 0.1s;
    border-radius: 2px;
}

.grid-cell:hover {
    background: #444;
}

.grid-cell.active {
    background: var(--neon-cyan);
    box-shadow: 0 0 5px var(--neon-cyan);
}

.studio-controls {
    display: flex;
    flex-direction: column;
    gap: 15px;
    min-width: 150px;
}

.stat-box {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
}

.stat-box h3 {
    color: var(--neon-cyan);
    font-size: 1.5rem;
    margin: 5px 0 0 0;
}

/* 5. Solar Game */
#exp-game .exp-container {
    padding: 0;
    position: relative;
    border: 2px solid #444;
}

.game-ui {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 20;
}

.game-hud {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    display: flex;
    justify-content: space-between;
    font-family: 'Exo 2';
    font-weight: bold;
    font-size: 1.2rem;
    z-index: 10;
    pointer-events: none;
    padding: 0 20px;
}