/* ===========================================================
   Bowlingligaen - hovedhjemmeside (samme "Retro Neon Bowling"-tema
   som selve appen, men med forside-layout: topmenu, hero, priser osv.)
   =========================================================== */

:root {
    --bg:            #0b0e1a;
    --bg-alt:        #10152a;
    --card:          #141a30;
    --card-border:   #262f52;
    --text:          #eef1fb;
    --text-dim:      #9aa3c7;
    --neon-cyan:     #00e5ff;
    --neon-pink:     #ff2e88;
    --neon-purple:   #8b5cf6;
    --gold:          #ffd447;
    --gold-dark:     #b8860b;
    --silver:        #d7dbe6;
    --silver-dark:   #8891a8;
    --bronze:        #e0975a;
    --bronze-dark:   #a85a2a;
    --danger:        #ff4d6d;
    --radius:        16px;
    --shadow-glow:   0 0 20px rgba(0, 229, 255, 0.25);
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background-color: var(--bg);
    background-image: radial-gradient(circle at 50% -10%, #1a2148 0%, var(--bg) 55%);
    color: var(--text);
    font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    min-height: 100dvh;
}

a { color: var(--neon-cyan); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
    font-family: 'Baloo 2', 'Poppins', system-ui, sans-serif;
    font-weight: 700;
    margin: 0 0 0.5em;
    letter-spacing: 0.3px;
}

p { line-height: 1.6; }

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 32px 20px 60px;
}

/* --------------------- Topmenu --------------------- */
.site-topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(11, 14, 26, 0.85);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--card-border);
}

.site-topbar-inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand {
    font-family: 'Baloo 2', sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
}
.brand:hover { text-decoration: none; }
.brand .pin { font-size: 1.4rem; filter: drop-shadow(0 0 6px var(--neon-cyan)); }

.nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--card-border);
    color: var(--text);
    font-size: 1.2rem;
    border-radius: 8px;
    padding: 4px 10px;
    cursor: pointer;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 22px;
}

.site-nav a {
    color: var(--text-dim);
    font-weight: 500;
    font-size: 0.92rem;
}
.site-nav a:hover, .site-nav a.active { color: var(--text); text-decoration: none; }
.site-nav a.nav-cta { color: #071019; }

/* --------------------- Hero --------------------- */
.hero {
    text-align: center;
    padding: 40px 10px 20px;
}
.hero .pin-big { font-size: 3.2rem; filter: drop-shadow(0 0 18px var(--neon-cyan)); }
.hero h1 {
    font-size: 2.1rem;
    margin: 10px 0 8px;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero p.tagline {
    color: var(--text-dim);
    font-size: 1.05rem;
    max-width: 560px;
    margin: 0 auto 22px;
}
.hero-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* --------------------- Sektioner --------------------- */
.section { margin-top: 56px; }
.section-heading { text-align: center; margin-bottom: 28px; }
.section-heading h2 { font-size: 1.5rem; }
.section-heading p { color: var(--text-dim); max-width: 520px; margin: 0 auto; }

/* --------------------- Kort / grids --------------------- */
.card {
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 18px;
}
.card-glow { box-shadow: var(--shadow-glow); }
.card h2, .card h3 { color: var(--text); }

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}
.feature-card { text-align: left; }
.feature-card .icon { font-size: 1.7rem; margin-bottom: 8px; display: block; }
.feature-card h3 { font-size: 1rem; margin-bottom: 6px; }
.feature-card p { color: var(--text-dim); font-size: 0.9rem; margin: 0; }

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
    align-items: stretch;
}
.pricing-card {
    display: flex;
    flex-direction: column;
    text-align: center;
}
.pricing-card.highlight { border-color: var(--neon-cyan); box-shadow: var(--shadow-glow); }
.pricing-card .price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--neon-cyan);
    margin: 6px 0 2px;
    font-family: 'Baloo 2', sans-serif;
}
.pricing-card .price small { font-size: 0.9rem; color: var(--text-dim); font-weight: 500; }
.pricing-card ul { list-style: none; padding: 0; margin: 14px 0 20px; color: var(--text-dim); font-size: 0.9rem; text-align: left; flex: 1 1 auto; }
.pricing-card ul li { padding: 5px 0; border-bottom: 1px solid var(--card-border); }
.pricing-card ul li:last-child { border-bottom: none; }
.pricing-card ul li::before { content: "✓ "; color: var(--neon-cyan); }
.pricing-note { text-align: center; color: var(--text-dim); font-size: 0.85rem; margin-top: 18px; }

/* --------------------- Klub-liste --------------------- */
.club-list { display: grid; gap: 14px; }
.club-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
}
.club-list-item h3 { margin: 0 0 4px; font-size: 1.05rem; }
.club-list-item p { margin: 0; color: var(--text-dim); font-size: 0.88rem; }
.club-list-item .chev { color: var(--text-dim); font-size: 1.3rem; flex-shrink: 0; }
.club-list-item:hover { border-color: var(--neon-cyan); text-decoration: none; }

.leader-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.leader-table th, .leader-table td { padding: 8px 6px; text-align: left; border-bottom: 1px solid var(--card-border); }
.leader-table th { color: var(--text-dim); font-weight: 500; font-size: 0.75rem; text-transform: uppercase; }
.leader-table tr:last-child td { border-bottom: none; }

.team-chip-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.team-chip {
    background: var(--bg-alt);
    border: 1px solid var(--card-border);
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 0.82rem;
}
.team-chip strong { color: var(--text); }
.team-chip span { color: var(--text-dim); }

/* --------------------- Knapper --------------------- */
.btn {
    display: inline-block;
    padding: 12px 22px;
    border-radius: 999px;
    border: none;
    font-weight: 600;
    font-size: 0.92rem;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
}
.btn-primary {
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
    color: #071019;
    box-shadow: 0 0 16px rgba(0,229,255,0.35);
}
.btn-primary:hover { text-decoration: none; filter: brightness(1.08); }
.btn-secondary {
    background: var(--bg-alt);
    color: var(--text);
    border: 1px solid var(--card-border);
}
.btn-secondary:hover { text-decoration: none; border-color: var(--neon-cyan); }
.btn-block { display: block; width: 100%; }
.btn-sm { padding: 8px 16px; font-size: 0.82rem; }

/* --------------------- Formularer --------------------- */
label { display: block; font-size: 0.85rem; color: var(--text-dim); margin: 12px 0 4px; }

input[type=text], input[type=email], input[type=password], input[type=tel], textarea, select {
    width: 100%;
    max-width: 100%;
    padding: 11px 13px;
    border-radius: 10px;
    border: 1px solid var(--card-border);
    background: var(--bg-alt);
    color: var(--text);
    font-size: 0.95rem;
    font-family: inherit;
}
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--neon-cyan);
    box-shadow: 0 0 0 3px rgba(0,229,255,0.15);
}
.form-row { margin-bottom: 8px; }
.form-hint { color: var(--text-dim); font-size: 0.78rem; margin-top: 4px; }

.error-box {
    background: rgba(255,77,109,0.12);
    border: 1px solid var(--danger);
    color: #ffc4d0;
    padding: 10px 14px;
    border-radius: 10px;
    margin-bottom: 14px;
    font-size: 0.88rem;
}
.success-box {
    background: rgba(0,229,255,0.1);
    border: 1px solid var(--neon-cyan);
    color: #c7fbff;
    padding: 14px 16px;
    border-radius: 10px;
    margin-bottom: 14px;
    font-size: 0.92rem;
}

.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    background: rgba(0,229,255,0.12);
    color: #a9f4ff;
    border: 1px solid rgba(0,229,255,0.35);
}

.empty-state { text-align: center; padding: 40px 20px; color: var(--text-dim); }
.empty-state .icon { font-size: 2.5rem; display: block; margin-bottom: 10px; }

.text-dim { color: var(--text-dim); }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }

/* --------------------- Footer --------------------- */
.site-footer {
    border-top: 1px solid var(--card-border);
    background: var(--bg-alt);
    margin-top: 60px;
}
.site-footer-inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 32px 20px;
    text-align: center;
}
.site-footer .brand { justify-content: center; margin-bottom: 6px; }
.footer-links {
    display: flex;
    gap: 18px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 16px 0;
}
.footer-links a { color: var(--text-dim); font-size: 0.88rem; }
.footer-links a:hover { color: var(--neon-cyan); text-decoration: none; }
.footer-copy { font-size: 0.78rem; margin-top: 4px; }

/* --------------------- Mobil --------------------- */
@media (max-width: 720px) {
    .nav-toggle { display: inline-block; }
    .site-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-alt);
        border-bottom: 1px solid var(--card-border);
        flex-direction: column;
        align-items: stretch;
        padding: 10px 20px 18px;
        gap: 4px;
    }
    .site-nav.open { display: flex; }
    .site-nav a { padding: 10px 0; border-bottom: 1px solid var(--card-border); }
    .site-nav a.nav-cta { text-align: center; margin-top: 8px; border-bottom: none; }
    .hero h1 { font-size: 1.6rem; }
}

@media (min-width: 640px) {
    .container { padding: 40px 32px 70px; }
}
