/* 
   Grizzly Weather — Core Design System
   OLED Dark Theme / Industrial HUD
*/

:root {
    /* Colors */
    --bg-black: #0A0A0A;
    --surface-dark: #111111;
    --border-dim: #1A1A1A;
    
    --accent-amber: #FF8F00;
    --accent-gold: #FFD700;
    --accent-blue: #2D7FF9;
    --accent-cyan: #00D4FF;
    
    /* Status Colors */
    --status-safe: #4ade80;
    --status-watch: #facc15;
    --status-alert: #fb923c;
    --status-danger: #ef4444;

    /* Typography */
    --font-ui: 'Inter Tight', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-data: 'JetBrains Mono', monospace;
}

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

body {
    background-color: var(--bg-black);
    color: #ffffff;
    font-family: var(--font-ui);
    overflow-x: hidden;
    min-height: 100vh;
}

/* Glass Morphism */
.glass-card {
    background: rgba(26, 26, 26, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.8);
}

/* Auth Card Layout */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.auth-card {
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.grizzly-logo {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #fff 0%, #666 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    color: #888;
}

input {
    width: 100%;
    padding: 1rem;
    background: #000;
    border: 1px solid var(--border-dim);
    border-radius: 8px;
    color: #fff;
    font-family: var(--font-data);
    font-size: 1rem;
    transition: border-color 0.2s;
}

input:focus {
    outline: none;
    border-color: var(--accent-cyan);
}

button {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 8px;
    font-family: var(--font-ui);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.1s, background-color 0.2s;
}

button.primary {
    background-color: var(--accent-cyan);
    color: #000;
}

button.primary:active {
    transform: scale(0.98);
}

button.secondary {
    background: transparent;
    color: #888;
    margin-top: 1rem;
    font-size: 0.9rem;
}

button.secondary:hover {
    color: #fff;
}

.error-message {
    color: var(--status-danger);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    min-height: 1.2rem;
}

/* Animations */
@keyframes glow {
    0% { box-shadow: 0 0 5px var(--accent-cyan); }
    50% { box-shadow: 0 0 20px var(--accent-cyan); }
    100% { box-shadow: 0 0 5px var(--accent-cyan); }
}

.auth-card:focus-within {
    border-color: rgba(0, 212, 255, 0.3);
}

/* Dashboard Layout */
.dashboard-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

#map {
    flex-grow: 1;
    width: 100%;
    z-index: 1;
}

/* Status Indicator */
.status-hud {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1000;
    pointer-events: none;
}

.status-circle {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 3px solid var(--status-safe);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(8px);
    transition: border-color 0.5s, box-shadow 0.5s;
}

@media (min-width: 768px) {
    .status-circle { width: 120px; height: 120px; border-width: 4px; }
    .status-value { font-size: 1.2rem; }
}

.status-circle.normal { border-color: var(--status-safe); box-shadow: 0 0 10px var(--status-safe); }
.status-circle.watch { border-color: var(--status-watch); box-shadow: 0 0 15px var(--status-watch); }
.status-circle.advisory { border-color: var(--status-alert); box-shadow: 0 0 20px var(--status-alert); }
.status-circle.warning { border-color: var(--status-danger); box-shadow: 0 0 30px var(--status-danger); animation: glow-danger 1.5s infinite; }

@keyframes glow-danger {
    0% { box-shadow: 0 0 20px var(--status-danger); }
    50% { box-shadow: 0 0 50px var(--status-danger); }
    100% { box-shadow: 0 0 20px var(--status-danger); }
}

.status-text {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #888;
}

.status-value {
    font-size: 0.9rem;
    font-weight: 900;
    text-align: center;
    line-height: 1.1;
}

/* Timeline Scrubber */
.timeline-container {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 600px;
    z-index: 1000;
    background: rgba(17, 17, 17, 0.9);
    padding: 15px;
    border-radius: 12px;
    border: 1px solid var(--border-dim);
}

.timeline-scrubber {
    width: 100%;
    height: 6px;
    -webkit-appearance: none;
    background: #222;
    border-radius: 3px;
    outline: none;
}

.timeline-scrubber::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: var(--accent-cyan);
    border-radius: 50%;
    cursor: pointer;
}

.timeline-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-family: var(--font-data);
    font-size: 0.7rem;
    color: #666;
}

/* Ticker Bar */
.ticker-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 36px;
    background: rgba(0,0,0,0.9);
    border-top: 1px solid var(--border-dim);
    display: flex;
    align-items: center;
    overflow: hidden;
    white-space: nowrap;
    z-index: 1001;
    font-size: 0.8rem;
}

.ticker-content {
    display: inline-block;
    animation: scroll-left 30s linear infinite;
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    margin-right: 40px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 10px;
    animation: pulse 2s infinite;
}

.ticker-name {
    font-weight: 700;
    margin-right: 5px;
}

.ticker-status {
    color: #888;
    text-transform: uppercase;
    font-size: 0.8rem;
}

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

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
    100% { transform: scale(1); opacity: 1; }
}

/* Shield Mode */
body.shield-mode {
    background-color: #000;
}

.shield-mode .glass-card {
    background: #000;
    border: 2px solid var(--status-danger);
}

.shield-mode #map {
    filter: grayscale(1) brightness(0.5);
}

/* Mobile Bottom Nav */
.bottom-nav {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 60px;
    background: var(--surface-dark);
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid var(--border-dim);
    z-index: 1002;
}

.nav-item {
    color: #666;
    font-size: 1.5rem;
    cursor: pointer;
}

.nav-item.active {
    color: var(--accent-cyan);
}
