/* Fox On Fire Console - Cyberpunk Dashboard */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;900&family=Share+Tech+Mono&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-dark: #0a0a0f;
    --bg-card: rgba(15, 15, 25, 0.8);
    --border-color: rgba(255, 100, 50, 0.3);
    --primary: #ff6b35;
    --primary-glow: rgba(255, 107, 53, 0.5);
    --secondary: #00ff88;
    --warning: #ffcc00;
    --danger: #ff3366;
    --text: #e0e0e0;
    --text-dim: #888;
    --scanner: #ff3300;
}

body {
    font-family: 'Share Tech Mono', monospace;
    background: var(--bg-dark);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Entry Screen */
.entry-screen {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: radial-gradient(ellipse at center, #1a0a05 0%, #0a0a0f 70%);
    z-index: 1000;
    transition: opacity 0.5s, visibility 0.5s;
}

.entry-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.entry-glow {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

.ignition-btn {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2rem 4rem;
    background: rgba(20, 10, 5, 0.9);
    border: 2px solid var(--primary);
    border-radius: 100px;
    color: var(--primary);
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 0 30px var(--primary-glow), inset 0 0 30px rgba(255, 107, 53, 0.1);
}

.ignition-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 50px var(--primary-glow), inset 0 0 50px rgba(255, 107, 53, 0.2);
}

.ignition-icon {
    font-size: 3rem;
}

.entry-subtitle {
    margin-top: 2rem;
    color: var(--text-dim);
    font-size: 0.8rem;
    letter-spacing: 0.3em;
}

/* Console */
.console {
    display: none;
    flex-direction: column;
    min-height: 100vh;
    background:
        linear-gradient(180deg, rgba(255, 60, 0, 0.05) 0%, transparent 20%),
        linear-gradient(0deg, rgba(0, 100, 255, 0.05) 0%, transparent 20%),
        var(--bg-dark);
}

.console.active {
    display: flex;
}

/* Scanner Bar */
.scanner-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--scanner), transparent);
    animation: scan 2s ease-in-out infinite;
    z-index: 100;
}

@keyframes scan {

    0%,
    100% {
        transform: translateX(-100%);
    }

    50% {
        transform: translateX(100%);
    }
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: rgba(10, 10, 15, 0.95);
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.logo {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary);
}

.status-badge {
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
}

.status-badge.nominal {
    background: rgba(0, 255, 136, 0.2);
    color: var(--secondary);
    border: 1px solid var(--secondary);
}

.status-info {
    color: var(--text-dim);
    font-size: 0.8rem;
}

.header-center {
    display: flex;
    gap: 0.5rem;
}

.mode-btn {
    padding: 0.5rem 1.5rem;
    background: transparent;
    border: 1px solid var(--text-dim);
    color: var(--text-dim);
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s;
}

.mode-btn:hover,
.mode-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #000;
}

/* Play Game Button */
.play-game-btn {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, #ff6b35, #ff4500, #ff3300);
    border: 2px solid #ff6b35;
    border-radius: 50px;
    color: #fff;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 0 30px rgba(255, 107, 53, 0.6), 0 0 60px rgba(255, 69, 0, 0.3);
    animation: play-btn-glow 2s ease-in-out infinite;
}

.play-game-btn:hover {
    transform: scale(1.08) translateY(-3px);
    box-shadow: 0 0 50px rgba(255, 107, 53, 0.9), 0 0 80px rgba(255, 69, 0, 0.5);
}

.play-icon {
    font-size: 1.5rem;
}

@keyframes play-btn-glow {

    0%,
    100% {
        box-shadow: 0 0 30px rgba(255, 107, 53, 0.6), 0 0 60px rgba(255, 69, 0, 0.3);
    }

    50% {
        box-shadow: 0 0 50px rgba(255, 107, 53, 0.9), 0 0 80px rgba(255, 69, 0, 0.5);
    }
}

.header-right {
    display: flex;
    align-items: center;
}

.connect-btn {
    padding: 0.6rem 1.5rem;
    background: linear-gradient(135deg, var(--primary), #ff3300);
    border: none;
    border-radius: 4px;
    color: #fff;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 0 20px var(--primary-glow);
}

.connect-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px var(--primary-glow);
}

.connect-btn.connected {
    background: linear-gradient(135deg, var(--secondary), #00cc66);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
}

/* Main Content */
.main-content {
    display: flex;
    flex: 1;
}

/* Sidebar */
.sidebar {
    width: 80px;
    background: rgba(10, 10, 15, 0.9);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1rem 0;
}

.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    padding: 1rem 0;
    background: transparent;
    border: none;
    border-left: 3px solid transparent;
    color: var(--text-dim);
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.7rem;
    cursor: pointer;
    transition: all 0.3s;
}

.nav-btn:hover,
.nav-btn.active {
    color: var(--primary);
    border-left-color: var(--primary);
    background: rgba(255, 107, 53, 0.1);
}

.nav-icon {
    font-size: 1.5rem;
}

.sidebar-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
}

.audio-visualizer {
    display: flex;
    gap: 3px;
    height: 30px;
    align-items: flex-end;
}

.audio-bar {
    width: 4px;
    background: var(--primary);
    animation: audioBar 0.5s ease-in-out infinite alternate;
}

.audio-bar:nth-child(1) {
    height: 10px;
    animation-delay: 0s;
}

.audio-bar:nth-child(2) {
    height: 20px;
    animation-delay: 0.1s;
}

.audio-bar:nth-child(3) {
    height: 15px;
    animation-delay: 0.2s;
}

.audio-bar:nth-child(4) {
    height: 25px;
    animation-delay: 0.3s;
}

.audio-bar:nth-child(5) {
    height: 12px;
    animation-delay: 0.4s;
}

@keyframes audioBar {
    to {
        height: 5px;
    }
}

.audio-label {
    font-size: 0.6rem;
    color: var(--text-dim);
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

/* Dashboard */
.dashboard {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Stats Row */
.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-dim);
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.stat-value.highlight {
    color: var(--secondary);
}

.stat-value.warning {
    color: var(--warning);
}

.stat-desc {
    font-size: 0.8rem;
    color: var(--text-dim);
}

/* Metrics Row */
.metrics-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.metric-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.metric-icon {
    font-size: 2rem;
}

.metric-label {
    font-size: 0.7rem;
    color: var(--text-dim);
    margin-bottom: 0.3rem;
}

.metric-value {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
}

.metric-value.glow {
    color: var(--primary);
    text-shadow: 0 0 20px var(--primary-glow);
}

/* Calibration Section */
.calibration-section,
.log-section,
.actions-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
}

.section-header {
    margin-bottom: 1rem;
}

.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    color: var(--primary);
}

.section-subtitle {
    font-size: 0.75rem;
    color: var(--text-dim);
    margin-left: 1rem;
}

.slider-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
}

.slider-label {
    font-size: 0.8rem;
    color: var(--text-dim);
}

.slider-label.active {
    color: var(--primary);
    font-weight: 600;
}

.fire-slider {
    flex: 1;
    -webkit-appearance: none;
    height: 6px;
    background: linear-gradient(90deg, var(--text-dim) 0%, var(--primary) 75%, var(--danger) 100%);
    border-radius: 3px;
    cursor: pointer;
}

.fire-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: var(--primary);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px var(--primary-glow);
}

/* Log Section */
.log-entries {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 200px;
    overflow-y: auto;
}

.log-entry {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    font-size: 0.8rem;
}

.log-time {
    color: var(--text-dim);
    font-size: 0.7rem;
}

.log-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.7rem;
}

.log-icon.success {
    background: rgba(0, 255, 136, 0.2);
    color: var(--secondary);
}

.log-icon.warning {
    background: rgba(255, 204, 0, 0.2);
    color: var(--warning);
}

.log-icon.info {
    background: rgba(255, 107, 53, 0.2);
    color: var(--primary);
}

.log-msg {
    color: var(--text);
}

/* Actions Section */
.action-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text);
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.85rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
}

.action-btn:hover {
    border-color: var(--primary);
    background: rgba(255, 107, 53, 0.1);
}

.action-btn.primary {
    background: linear-gradient(135deg, var(--primary), #ff3300);
    border-color: var(--primary);
    color: #fff;
    font-weight: 600;
}

.action-btn.primary:hover {
    box-shadow: 0 0 20px var(--primary-glow);
}

.action-icon {
    font-size: 1.2rem;
}

/* Footer */
.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: rgba(10, 10, 15, 0.95);
    border-top: 1px solid var(--border-color);
}

.gauge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.gauge-label {
    font-size: 0.7rem;
    color: var(--text-dim);
    letter-spacing: 0.1em;
}

.gauge-circle {
    position: relative;
    width: 80px;
    height: 80px;
}

.gauge-circle svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.gauge-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 8;
}

.gauge-fill {
    fill: none;
    stroke: var(--secondary);
    stroke-width: 8;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.5s;
}

.gauge-fill.orange {
    stroke: var(--primary);
}

.gauge-value {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    font-weight: 600;
}

.footer-status {
    display: flex;
    gap: 2rem;
    font-size: 0.8rem;
    color: var(--text-dim);
}

.text-green {
    color: var(--secondary);
}

.text-orange {
    color: var(--primary);
}

.text-red {
    color: var(--danger);
}

/* Responsive */
@media (max-width: 1200px) {
    .stats-row {
        grid-template-columns: 1fr;
    }

    .metrics-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .action-buttons {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .header-center {
        order: -1;
    }

    .sidebar {
        display: none;
    }

    .dashboard {
        padding: 1rem;
    }

    .footer {
        flex-direction: column;
        gap: 1rem;
    }

    .footer-status {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
}