/* ========================================
   gamelicensor.pro - Sci-Fi HUD Terminal
   ======================================== */

/* Color Palette Reference:
   Background Void: #0A0E17
   Background Panel: #0F1A2E
   Background Elevated: #162040
   Primary Glow: #00E5FF
   Secondary Glow: #00E676
   Warning Glow: #FFAB00
   Error Glow: #FF5252
   Text Primary: #B0BEC5
   Text Muted: #607D8B
   Dark Accent: #0A1628
*/

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background: #0A0E17;
    color: #B0BEC5;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 400;
    font-size: 15px;
    line-height: 1.75;
    letter-spacing: 0.02em;
    overflow-x: hidden;
}

/* Typography Classes */
.orbitron-700 {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    line-height: 1.1;
    color: #00E5FF;
}

.orbitron-500 {
    font-family: 'Orbitron', sans-serif;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    line-height: 1.1;
    color: #00E5FF;
}

/* ========================================
   Star Field Background
   ======================================== */
#star-field {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background:
        radial-gradient(1px 1px at 10% 20%, rgba(255,255,255,0.6), transparent),
        radial-gradient(1px 1px at 25% 45%, rgba(255,255,255,0.4), transparent),
        radial-gradient(1px 1px at 40% 15%, rgba(255,255,255,0.5), transparent),
        radial-gradient(1px 1px at 55% 70%, rgba(255,255,255,0.3), transparent),
        radial-gradient(1px 1px at 70% 35%, rgba(255,255,255,0.6), transparent),
        radial-gradient(1px 1px at 85% 60%, rgba(255,255,255,0.4), transparent),
        radial-gradient(1px 1px at 15% 80%, rgba(255,255,255,0.5), transparent),
        radial-gradient(1px 1px at 50% 90%, rgba(255,255,255,0.3), transparent),
        radial-gradient(1px 1px at 90% 10%, rgba(255,255,255,0.5), transparent),
        radial-gradient(1px 1px at 5% 55%, rgba(255,255,255,0.4), transparent),
        radial-gradient(1px 1px at 35% 95%, rgba(255,255,255,0.3), transparent),
        radial-gradient(1px 1px at 60% 5%, rgba(255,255,255,0.6), transparent),
        radial-gradient(1px 1px at 80% 85%, rgba(255,255,255,0.4), transparent),
        radial-gradient(1px 1px at 20% 65%, rgba(255,255,255,0.5), transparent),
        radial-gradient(1px 1px at 95% 40%, rgba(255,255,255,0.3), transparent),
        radial-gradient(1px 1px at 45% 50%, rgba(255,255,255,0.4), transparent),
        radial-gradient(1px 1px at 75% 75%, rgba(255,255,255,0.5), transparent),
        radial-gradient(1px 1px at 30% 30%, rgba(255,255,255,0.3), transparent),
        radial-gradient(1px 1px at 65% 25%, rgba(255,255,255,0.6), transparent),
        radial-gradient(1px 1px at 12% 42%, rgba(255,255,255,0.4), transparent);
    pointer-events: none;
}

/* ========================================
   Topographic Grid
   ======================================== */
#topo-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background-image:
        linear-gradient(rgba(0, 229, 255, 0.06) 0.5px, transparent 0.5px),
        linear-gradient(90deg, rgba(0, 229, 255, 0.06) 0.5px, transparent 0.5px);
    background-size: 40px 40px;
    pointer-events: none;
}

/* ========================================
   Scanning Line
   ======================================== */
#scanning-line {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, #00E5FF 50%, transparent 100%);
    opacity: 0.08;
    z-index: 50;
    animation: scan-sweep 12s linear infinite;
    pointer-events: none;
}

@keyframes scan-sweep {
    0% { top: 0; }
    100% { top: 100vh; }
}

/* ========================================
   HUD Frame
   ======================================== */
#hud-frame {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100;
    pointer-events: none;
}

/* Corner Brackets */
.corner-bracket {
    position: fixed;
    width: 60px;
    height: 60px;
}

.corner-bracket::before,
.corner-bracket::after {
    content: '';
    position: absolute;
    background: #00E5FF;
}

.corner-tl {
    top: 24px;
    left: 24px;
}
.corner-tl::before {
    top: 0;
    left: 0;
    width: 60px;
    height: 2px;
}
.corner-tl::after {
    top: 0;
    left: 0;
    width: 2px;
    height: 60px;
}

.corner-tr {
    top: 24px;
    right: 24px;
}
.corner-tr::before {
    top: 0;
    right: 0;
    width: 60px;
    height: 2px;
}
.corner-tr::after {
    top: 0;
    right: 0;
    width: 2px;
    height: 60px;
}

.corner-bl {
    bottom: 24px;
    left: 24px;
}
.corner-bl::before {
    bottom: 0;
    left: 0;
    width: 60px;
    height: 2px;
}
.corner-bl::after {
    bottom: 0;
    left: 0;
    width: 2px;
    height: 60px;
}

.corner-br {
    bottom: 24px;
    right: 24px;
}
.corner-br::before {
    bottom: 0;
    right: 0;
    width: 60px;
    height: 2px;
}
.corner-br::after {
    bottom: 0;
    right: 0;
    width: 2px;
    height: 60px;
}

/* Top Telemetry Bar */
#hud-top-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 28px;
    background: rgba(0, 229, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 90px;
    z-index: 100;
}

/* Bottom Status Bar */
#hud-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 28px;
    background: rgba(0, 229, 255, 0.05);
    display: flex;
    align-items: center;
    padding: 0 90px;
    z-index: 100;
}

.hud-label {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    font-size: 12px;
    color: #00E5FF;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

/* Left Status Strip */
#hud-left-strip {
    position: fixed;
    left: 0;
    top: 0;
    width: 32px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    z-index: 100;
}

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

.dot-green {
    background: #00E676;
    box-shadow: 0 0 8px rgba(0, 230, 118, 0.6);
}

.dot-amber {
    background: #FFAB00;
    box-shadow: 0 0 8px rgba(255, 171, 0, 0.6);
}

.dot-blue {
    background: #00E5FF;
    box-shadow: 0 0 8px rgba(0, 229, 255, 0.6);
}

/* ========================================
   Content Zones
   ======================================== */
#content-wrapper {
    position: relative;
    z-index: 1;
}

.zone {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    scroll-snap-align: start;
    position: relative;
}

.zone-inner {
    max-width: 1100px;
    width: 100%;
    padding: 80px;
    position: relative;
}

/* ========================================
   Zone Alpha: Identification
   ======================================== */
#zone-alpha {
    background: #0A0E17;
}

#zone-alpha .zone-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

#domain-title {
    font-size: clamp(40px, 6vw, 72px);
    color: #00E5FF;
    text-shadow: 0 0 30px rgba(0, 229, 255, 0.3), 0 0 60px rgba(10, 22, 40, 0.5);
    opacity: 0;
}

#domain-title.revealed {
    opacity: 1;
}

#domain-title .char {
    display: inline-block;
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.3s cubic-bezier(0.25, 0.1, 0.25, 1.0), transform 0.3s cubic-bezier(0.25, 0.1, 0.25, 1.0);
}

#domain-title .char.visible {
    opacity: 1;
    transform: translateX(0);
}

#title-rule {
    width: 0;
    height: 1px;
    background: #00E5FF;
    margin: 24px auto;
    transition: width 0.8s cubic-bezier(0.25, 0.1, 0.25, 1.0);
}

#title-rule.expanded {
    width: 60%;
}

#subtitle {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: #607D8B;
    letter-spacing: 0.2em;
    opacity: 0;
    transition: opacity 0.6s cubic-bezier(0.25, 0.1, 0.25, 1.0);
}

#subtitle.visible {
    opacity: 1;
}

/* Radar Scope */
#radar-scope {
    position: absolute;
    bottom: 10%;
    right: 10%;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 1px solid #00E5FF;
    opacity: 0.3;
    overflow: hidden;
}

#radar-scope::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: conic-gradient(from 0deg, rgba(0, 229, 255, 0.2) 0deg, transparent 60deg, transparent 360deg);
    animation: radar-spin 8s linear infinite;
    transform-origin: center;
}

@keyframes radar-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ========================================
   Zone Bravo: Classification
   ======================================== */
#zone-bravo {
    background: #0F1A2E;
}

#classification-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 2px;
    background: rgba(0, 229, 255, 0.15);
}

.grid-cell {
    background: #0F1A2E;
    padding: 32px;
    box-shadow: inset 0 0 30px rgba(0, 229, 255, 0.03);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s cubic-bezier(0.25, 0.1, 0.25, 1.0), transform 0.6s cubic-bezier(0.25, 0.1, 0.25, 1.0);
}

.grid-cell:hover {
    background: #162040;
}

.grid-cell.revealed {
    opacity: 1;
    transform: translateY(0);
}

.hex-badge {
    width: 64px;
    height: 64px;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    border: none;
    background: rgba(0, 229, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    position: relative;
    transition: background 0.3s;
}

.hex-badge::before {
    content: '';
    position: absolute;
    top: 1px;
    left: 1px;
    right: 1px;
    bottom: 1px;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background: #0F1A2E;
}

.hex-badge:hover {
    background: rgba(0, 229, 255, 0.2);
}

.hex-icon {
    font-family: 'Share Tech Mono', monospace;
    font-size: 18px;
    color: #00E5FF;
    position: relative;
    z-index: 1;
}

.cell-title {
    font-size: 18px;
    margin-bottom: 8px;
}

.cell-text {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 400;
    font-size: 15px;
    color: #B0BEC5;
    line-height: 1.75;
}

/* Hex pulse animation */
@keyframes pulse-attention {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.hex-badge.pulsed {
    animation: pulse-attention 0.4s cubic-bezier(0.25, 0.1, 0.25, 1.0) 1;
}

/* ========================================
   Zone Charlie: Verification
   ======================================== */
#zone-charlie {
    background: #0A0E17;
}

#zone-charlie .zone-inner {
    max-width: 600px;
    margin: 0 auto;
}

#verification-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.verify-entry {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.6s cubic-bezier(0.25, 0.1, 0.25, 1.0), transform 0.6s cubic-bezier(0.25, 0.1, 0.25, 1.0);
}

.verify-entry.revealed {
    opacity: 1;
    transform: translateX(0);
}

.bracket-frame {
    position: relative;
    padding: 24px;
    border: 1px solid rgba(0, 229, 255, 0.15);
    background: #0A1628;
}

.bracket-tl,
.bracket-br {
    position: absolute;
    width: 16px;
    height: 16px;
}

.bracket-tl {
    top: -1px;
    left: -1px;
    border-top: 2px solid #00E5FF;
    border-left: 2px solid #00E5FF;
}

.bracket-br {
    bottom: -1px;
    right: -1px;
    border-bottom: 2px solid #00E5FF;
    border-right: 2px solid #00E5FF;
}

.verify-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 8px;
}

.license-code {
    font-family: 'Share Tech Mono', monospace;
    font-size: 13px;
    color: #00E676;
    letter-spacing: 0.06em;
}

.verify-status {
    font-family: 'Share Tech Mono', monospace;
    font-size: 13px;
    letter-spacing: 0.06em;
}

.status-green {
    color: #00E676;
}

.status-error {
    color: #FF5252;
}

.progress-bar {
    width: 100%;
    height: 2px;
    background: rgba(0, 229, 255, 0.1);
    overflow: hidden;
}

.progress-fill {
    width: 0;
    height: 100%;
    background: linear-gradient(to right, #00E676, #00E5FF);
    transition: width 1.2s cubic-bezier(0.25, 0.1, 0.25, 1.0);
}

.verify-entry.revealed .progress-fill {
    width: 100%;
}

/* ========================================
   Zone Delta: Terminus
   ======================================== */
#zone-delta {
    background: #0F1A2E;
}

#zone-delta .zone-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 100vh;
}

#terminus-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#terminus-header {
    display: flex;
    align-items: center;
    gap: 24px;
    width: 100%;
    max-width: 800px;
}

.terminus-rule {
    flex: 1;
    height: 1px;
    background: #00E5FF;
}

#terminus-domain {
    font-size: 28px;
    color: #00E5FF;
    white-space: nowrap;
}

#system-status {
    font-family: 'Share Tech Mono', monospace;
    font-size: 13px;
    color: #00E676;
    letter-spacing: 0.06em;
    margin-top: 24px;
    animation: blink-status 2s ease-in-out infinite;
}

@keyframes blink-status {
    0%, 100% { opacity: 1.0; }
    50% { opacity: 0.3; }
}

#status-dots-large {
    display: flex;
    gap: 24px;
    margin-top: 32px;
}

.large-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.large-dot.dot-green {
    background: #00E676;
    box-shadow: 0 0 12px rgba(0, 230, 118, 0.6);
}

.large-dot.dot-amber {
    background: #FFAB00;
    box-shadow: 0 0 12px rgba(255, 171, 0, 0.6);
}

.large-dot.dot-blue {
    background: #00E5FF;
    box-shadow: 0 0 12px rgba(0, 229, 255, 0.6);
}

/* Data Ticker */
#data-ticker {
    width: 100%;
    overflow: hidden;
    position: absolute;
    bottom: 15%;
    left: 0;
}

#ticker-track {
    display: flex;
    white-space: nowrap;
    animation: ticker-scroll 30s linear infinite;
}

.ticker-content {
    font-family: 'Share Tech Mono', monospace;
    font-size: 11px;
    color: #00E676;
    letter-spacing: 0.06em;
    flex-shrink: 0;
}

@keyframes ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 768px) {
    .zone-inner {
        padding: 24px;
    }

    #hud-top-bar,
    #hud-bottom-bar {
        padding: 0 40px;
    }

    #classification-grid {
        grid-template-columns: 1fr;
    }

    .verify-content {
        flex-direction: column;
        align-items: flex-start;
    }

    #terminus-header {
        flex-direction: column;
        gap: 12px;
    }

    .terminus-rule {
        width: 60%;
        flex: none;
    }

    #radar-scope {
        width: 120px;
        height: 120px;
        bottom: 5%;
        right: 5%;
    }
}
