/*
 * Lake Belton Dashboard
 * Scandinavian minimal - hero with overlaid stats
 */

:root {
    --color-bg: #FAFAFA;
    --color-text: #1a1a1a;
    --color-text-muted: #555;
    --color-text-light: #888;
    --font-sans: 'Source Sans 3', system-ui, sans-serif;
}

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

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-sans);
    background: var(--color-bg);
    color: var(--color-text);
    min-height: 100vh;
    line-height: 1.5;
}

/* Hero - extends deep with smooth fade */
.hero {
    position: relative;
    min-height: 85vh;
    background: url('../images/lake-belton-hero-sunset.jpg') center top/cover no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0 1.5rem;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.1) 0%,
        rgba(0, 0, 0, 0) 20%,
        rgba(250, 250, 250, 0) 50%,
        rgba(250, 250, 250, 0.4) 70%,
        rgba(250, 250, 250, 0.85) 85%,
        rgba(250, 250, 250, 1) 100%
    );
    pointer-events: none;
}

/* Header - positioned high */
.hero-header {
    position: relative;
    z-index: 1;
    text-align: center;
    padding-top: 3rem;
    opacity: 0;
    transform: translateY(-10px);
    animation: fadeInDown 0.8s ease 0.2s forwards;
}

.hero h1 {
    font-size: clamp(2.25rem, 6vw, 3.25rem);
    font-weight: 300;
    letter-spacing: -0.01em;
    color: white;
    text-shadow: 0 2px 30px rgba(0,0,0,0.4);
    margin-bottom: 0.25rem;
}

.hero-subtitle {
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.9);
    font-weight: 400;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    text-shadow: 0 1px 15px rgba(0,0,0,0.4);
}

/* Stats panel - floats on hero */
.stats-panel {
    position: relative;
    z-index: 1;
    text-align: center;
    padding-bottom: 2.5rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease 0.5s forwards;
}

/* Primary stat - water level */
.primary-stat {
    margin-bottom: 1.75rem;
}

.primary-stat .stat-label {
    display: block;
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 0.375rem;
}

.primary-stat .stat-value {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.25rem;
}

.level-number {
    font-size: clamp(3.5rem, 12vw, 5rem);
    font-weight: 300;
    letter-spacing: -0.03em;
    line-height: 1;
    color: var(--color-text);
}

.level-unit {
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--color-text-muted);
    margin-left: 0.125rem;
}

.stat-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    margin-top: 0.625rem;
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.meta-divider {
    color: var(--color-text-light);
}

/* Secondary stats row */
.secondary-stats {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
}

.item-value {
    font-size: 1.375rem;
    font-weight: 400;
    color: var(--color-text);
    line-height: 1.2;
}

.item-label {
    font-size: 0.625rem;
    font-weight: 500;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 0.1875rem;
}

/* Main content */
main {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Source links - two row navigation */
.source-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.125rem 0.5rem;
    padding: 0.5rem 0;
    opacity: 0;
    animation: fadeIn 0.6s ease 0.9s forwards;
}

.source-links a {
    padding: 0.5rem 0.75rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--color-text-muted);
    text-decoration: none;
    border-radius: 100px;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.source-links a:hover {
    color: var(--color-text);
    background: rgba(0,0,0,0.04);
}

.source-links a.selected {
    color: var(--color-text);
    background: rgba(0,0,0,0.06);
}

/* Navigation divider forces second row */
.source-links .nav-divider {
    flex-basis: 100%;
    height: 0;
}

/* Short labels for mobile - hidden by default, shown on small screens */
.source-links .nav-short {
    display: none;
}

.source-links .nav-full {
    display: inline;
}

/* Footer */
footer {
    text-align: center;
    padding: 1rem 1rem 2rem;
    font-size: 0.75rem;
    color: var(--color-text-light);
    opacity: 0;
    animation: fadeIn 0.6s ease 1s forwards;
}

footer a {
    color: var(--color-text-light);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Animations */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 600px) {
    .hero {
        min-height: 80vh;
        padding: 0 1rem;
    }

    .hero-header {
        padding-top: 2rem;
    }

    .stats-panel {
        padding-bottom: 2rem;
    }

    .secondary-stats {
        gap: 1.5rem;
    }

    .stat-item {
        min-width: 55px;
    }

    .item-value {
        font-size: 1.25rem;
    }

    .source-links {
        gap: 0.125rem 0.375rem;
    }

    .source-links a {
        padding: 0.375rem 0.5rem;
        font-size: 0.75rem;
    }

    /* Show short labels, hide full labels on mobile */
    .source-links .nav-short {
        display: inline;
    }

    .source-links .nav-full {
        display: none;
    }
}

@media (max-width: 380px) {
    .secondary-stats {
        gap: 1rem;
    }

    .stat-meta {
        flex-wrap: wrap;
        gap: 0.375rem;
    }
}
