﻿:root {
    --bg: #050816;
    --bg-soft: #0b1120;
    --accent: #e50914;
    --accent-soft: rgba(229, 9, 20, 0.15);
    --text-main: #e5e7eb;
    --text-muted: #9ca3af;
    --border-subtle: rgba(148, 163, 184, 0.4);
    --radius-lg: 18px;
    --shadow-soft: 0 24px 40px rgba(15, 23, 42, 0.9);
}

/* Global reset-ish */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.heyvai {
    margin: 0;
    min-height: 100vh;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #f7f7f7;
    background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.12), transparent 55%), radial-gradient(circle at bottom right, rgba(0, 0, 0, 0.4), transparent 55%), url("/img/bg.jpeg") center center / cover no-repeat fixed;
}

/* Header */
.hv-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    max-width: 960px;
    margin: 0 auto;
    background: radial-gradient(circle at top, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.98));
    border-bottom: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 0 0 24px 24px;
}

.hv-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo {
    font-weight: 800;
    font-size: 20px;
    letter-spacing: 0.06em;
    text-transform: lowercase;
}

.nav-link {
    font-size: 14px;
    text-decoration: none;
    color: var(--text-main);
    padding: 6px 10px;
    border-radius: 999px;
    transition: background 0.15s ease, color 0.15s ease;
}

    .nav-link:hover {
        background: rgba(15, 23, 42, 0.7);
    }

.nav-cta {
    background: var(--accent);
    color: #f9fafb;
    box-shadow: 0 12px 25px rgba(229, 9, 20, 0.6);
}

    .nav-cta:hover {
        background: #b20710;
    }

/* Home / hero */

.home {
    min-height: calc(100vh - 140px); /* header + footer space */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.hero {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.98));
    border-radius: 32px;
    padding: 40px 28px 32px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-subtle);
}

.hero-title {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 12px;
}

.hero-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    max-width: 420px;
    margin: 0 auto 20px;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* Buttons */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 999px;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.16s ease, transform 0.08s ease, box-shadow 0.16s ease;
}

.btn-primary {
    background: var(--accent);
    color: #f9fafb;
    box-shadow: 0 16px 30px rgba(229, 9, 20, 0.6);
}

    .btn-primary:hover {
        background: #b20710;
        transform: translateY(-1px);
    }

.btn-secondary {
    background: rgba(15, 23, 42, 0.9);
    color: var(--text-main);
    border: 1px solid var(--border-subtle);
}

    .btn-secondary:hover {
        background: rgba(15, 23, 42, 1);
    }

/* Auth pages (login / register) */

.auth-container {
    max-width: 420px;
    margin: 60px auto;
    padding: 28px 24px 22px;
    background: var(--bg-soft);
    border-radius: 24px;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-soft);
}

    .auth-container h1 {
        font-size: 22px;
        font-weight: 700;
        margin-bottom: 8px;
    }

    .auth-container label {
        display: block;
        font-size: 12px;
        color: var(--text-muted);
        margin-bottom: 4px;
    }

    .auth-container input {
        width: 100%;
        border-radius: 10px;
        border: 1px solid var(--border-subtle);
        background: rgba(15, 23, 42, 0.95);
        color: var(--text-main);
        padding: 9px 10px;
        font-size: 13px;
        outline: none;
        transition: border-color 0.14s ease, box-shadow 0.14s ease, background 0.14s ease;
    }

        .auth-container input::placeholder {
            color: rgba(148, 163, 184, 0.8);
        }

        .auth-container input:focus {
            border-color: var(--accent);
            box-shadow: 0 0 0 1px rgba(229, 9, 20, 0.5);
            background: #020617;
        }

    .auth-container .btn-primary {
        width: 100%;
        margin-top: 22px;
        box-shadow: 0 8px 16px rgba(229, 9, 20, 0.4);
    }

.auth-meta {
    margin-top: 0;
    padding-top: 6px;
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
}

    .auth-meta a {
        color: var(--accent);
        text-decoration: none;
        font-weight: 500;
    }

        .auth-meta a:hover {
            text-decoration: underline;
        }


.user-display {
    font-size: 13px;
    color: var(--text-muted);
    margin-right: 6px;
}

/* Ensure header items don’t feel cramped */
.hv-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}
/* Messages */

.error,
.success {
    margin-top: 10px;
    font-size: 12px;
    padding: 8px 10px;
    border-radius: 10px;
}

.error {
    background: rgba(248, 113, 113, 0.1);
    border: 1px solid rgba(248, 113, 113, 0.5);
    color: #fecaca;
}

.success {
    background: rgba(74, 222, 128, 0.1);
    border: 1px solid rgba(74, 222, 128, 0.5);
    color: #bbf7d0;
}

/* Dashboard */

.dashboard {
    max-width: 960px;
    margin: 40px auto;
    padding: 0 24px 32px;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.card {
    background: var(--bg-soft);
    border-radius: 18px;
    padding: 16px 14px;
    border: 1px solid var(--border-subtle);
}

    .card h2 {
        font-size: 16px;
        margin-bottom: 6px;
    }

    .card p {
        font-size: 13px;
        color: var(--text-muted);
    }

/* Footer */

.hv-footer {
    padding: 12px 24px 16px;
    text-align: center;
    font-size: 11px;
    color: var(--text-muted);
}

/* Responsive tweaks */

@media (max-width: 640px) {
    .hv-header {
        padding: 12px 16px;
    }

    .hero {
        padding: 28px 18px 24px;
    }

    .hero-title {
        font-size: 26px;
    }
}

/* Dashboard should use old dark gradient background */
body.dashboard-page {
    background: radial-gradient(circle at top, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.98)) !important;
    background-attachment: fixed;
    background-size: cover;
}
