/* F1 Predictor 2027 — Base Design */

:root {
    --background: #101218;
    --surface: #1b1e27;
    --text: #f5f5f7;
    --muted: #a9adb9;
    --accent: #e10600;
    --border: #343844;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--background);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Navigation */

.site-header {
    background: var(--surface);
    border-bottom: 3px solid var(--accent);
}

.navbar {
    max-width: 1400px;
    margin: 0 auto;
    padding: 18px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 800;
    white-space: nowrap;
}

.brand-accent,
.brand-year {
    color: var(--accent);
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 25px;
}

.navbar-menu a {
    font-weight: 600;
    transition: color 0.2s;
}

.navbar-menu a:hover {
    color: var(--accent);
}

.nav-login {
    padding: 8px 18px;
    border: 1px solid var(--accent);
    border-radius: 6px;
}

.navbar-toggle {
    display: none;
}

/* Main content */

.main-content {
    flex: 1;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 70px 30px;
}

.welcome-section {
    max-width: 850px;
}

.welcome-section h1 {
    font-size: clamp(2.2rem, 5vw, 4rem);
    line-height: 1.15;
    margin: 0 0 30px;
}

.welcome-section p {
    color: var(--muted);
    font-size: 1.15rem;
}

/* Footer */

.site-footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 20px 30px;
    text-align: center;
    color: var(--muted);
    font-size: 0.85rem;
}

/* Mobile navigation */

@media (max-width: 900px) {
    .navbar {
        flex-wrap: wrap;
        padding: 15px 20px;
    }

    .navbar-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        background: transparent;
        border: 0;
        cursor: pointer;
        padding: 10px;
    }

    .navbar-toggle span {
        width: 25px;
        height: 3px;
        background: var(--text);
        border-radius: 2px;
    }

    .navbar-menu {
        display: none;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 0;
    }

    .navbar-menu.is-open {
        display: flex;
    }

    .navbar-menu a {
        padding: 12px 5px;
        border-bottom: 1px solid var(--border);
    }

    .main-content {
        padding: 45px 20px;
    }
}

/* Homepage dashboard */

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
    margin-top: 45px;
}

.dashboard-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-top: 3px solid var(--accent);
    border-radius: 10px;
    padding: 26px;
    min-width: 0;
    transition: transform 0.2s ease,
                border-color 0.2s ease;
}

.dashboard-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
}

.dashboard-card h2 {
    margin: 0 0 22px;
    color: var(--muted);
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.card-value {
    margin: 0 0 15px;
    color: var(--text);
    font-size: clamp(1.25rem, 1.7vw, 1.8rem);
    font-weight: 800;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.card-description {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Tablet layout */

@media (max-width: 1100px) {
    .dashboard-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Mobile layout */

@media (max-width: 600px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-top: 30px;
    }

    .dashboard-card {
        padding: 22px;
    }

    .card-value {
        font-size: 1.5rem;
    }
}