/**
 * BeatLine BINGO public theme — colours aligned with brand logo
 * (deep navy base, magenta “Beat”, cyan “Line”, warm yellow–orange “BINGO”).
 * Body / muted text tuned for contrast on dark backgrounds.
 */

:root {
    /* Logo-aligned: deep blue-black stage, magenta “Beat”, cyan “Line”, gold “BINGO” */
    --bl-blue-black: #020617;
    --bl-navy-deep: #030818;
    --bl-navy: #070f24;
    --bl-navy-mid: #0c1836;
    --bl-navy-card: #0a1428;
    --bl-indigo-mist: #1e1b4b;

    --bl-card-border: rgba(255, 255, 255, 0.09);

    --bl-pink: #f472b6;
    --bl-pink-hot: #ec4899;
    --bl-pink-deep: #be185d;
    --bl-cyan: #38bdf8;
    --bl-cyan-bright: #22d3ee;
    --bl-cyan-deep: #0284c7;

    --bl-gold: #fbbf24;
    --bl-amber: #fcd34d;
    --bl-orange: #fb923c;
    --bl-orange-deep: #ea580c;

    /* Logo word fills (vertical gradients — Beat / Line / BINGO) */
    --bl-logo-beat-top: #ff66cc;
    --bl-logo-beat-bot: #d10074;
    --bl-logo-line-top: #00ccff;
    --bl-logo-line-bot: #0066cc;
    --bl-logo-bingo-top: #ffff00;
    --bl-logo-bingo-bot: #ff9900;

    /* Readable text on logo navy */
    --bl-text: #f8fafc;
    --bl-text-muted: #cbd5e1;
    --bl-text-soft: #94a3b8;

    --bl-focus-ring: rgba(56, 189, 248, 0.55);
}

/* Bootstrap dark theme: lift default body & muted colours for contrast */
[data-bs-theme="dark"] {
    --bs-body-color: #f8fafc;
    --bs-body-color-rgb: 248, 250, 252;
    --bs-secondary-color: #cbd5e1;
    --bs-secondary-color-rgb: 203, 213, 225;
    --bs-tertiary-color: #94a3b8;
    --bs-tertiary-color-rgb: 148, 163, 184;
    --bs-border-color: rgba(148, 163, 184, 0.22);
    --bs-link-color: #7dd3fc;
    --bs-link-hover-color: #bae6fd;
}

body {
    background-color: var(--bl-blue-black);
    background-image:
        radial-gradient(ellipse 100% 70% at 50% -15%, rgba(30, 27, 75, 0.45), transparent 55%),
        radial-gradient(ellipse 900px 520px at 12% 0%, rgba(236, 72, 153, 0.2), transparent 58%),
        radial-gradient(ellipse 880px 500px at 88% 4%, rgba(34, 211, 238, 0.16), transparent 54%),
        radial-gradient(ellipse 700px 420px at 50% 100%, rgba(251, 191, 36, 0.09), transparent 52%),
        linear-gradient(168deg, var(--bl-blue-black) 0%, var(--bl-navy-deep) 28%, var(--bl-navy) 55%, var(--bl-navy-mid) 100%);
    background-attachment: fixed;
    color: var(--bl-text);
}

/* Slightly brighter than Bootstrap’s default .text-secondary on dark */
.text-secondary {
    color: var(--bl-text-muted) !important;
}

/* ---------- Navbar ---------- */
/* Nav links above the brand row: gradient wordmark + drop-shadow can widen the logo link’s hit box over the last items. */
.bl-nav .navbar-brand {
    position: relative;
    z-index: 1;
}

.bl-nav .navbar-collapse {
    position: relative;
    z-index: 2;
}

.bl-nav {
    background: linear-gradient(180deg, rgba(3, 8, 24, 0.97) 0%, rgba(5, 10, 26, 0.92) 100%) !important;
    backdrop-filter: blur(14px);
    border-bottom: 0 !important;
    box-shadow:
        0 1px 0 rgba(236, 72, 153, 0.45),
        0 2px 0 rgba(34, 211, 238, 0.28),
        0 3px 0 rgba(251, 191, 36, 0.18),
        0 12px 32px rgba(0, 0, 0, 0.4);
}

.bl-nav .navbar-toggler {
    border-color: rgba(248, 250, 252, 0.25);
}

.bl-nav .nav-link {
    color: rgba(248, 250, 252, 0.88) !important;
    font-weight: 500;
}

.bl-nav .nav-link:hover,
.bl-nav .nav-link:focus {
    color: #ffffff !important;
}

.bl-nav .nav-link.active {
    color: #ffffff !important;
    text-decoration: underline;
    text-underline-offset: 0.25rem;
    text-decoration-color: var(--bl-cyan);
}

.bl-logo-link {
    text-decoration: none !important;
}

/* Navbar wordmark — Beat / line / Bingo colours match logo lettering */
.bl-brand-wordmark {
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.bl-wm-beat,
.bl-wm-line,
.bl-wm-bingo {
    display: inline-block;
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    filter: drop-shadow(0 1px 0 rgba(2, 6, 23, 0.9)) drop-shadow(0 0 1px rgba(2, 6, 23, 0.5));
}

/* Keep gradient text when the wordmark sits inside a coloured link */
a.link-bl .bl-wm-beat,
a.link-bl .bl-wm-line,
a.link-bl .bl-wm-bingo {
    color: transparent;
}

.bl-wm-beat {
    background-image: linear-gradient(180deg, var(--bl-logo-beat-top) 0%, var(--bl-logo-beat-bot) 100%);
}

.bl-wm-line {
    background-image: linear-gradient(180deg, var(--bl-logo-line-top) 0%, var(--bl-logo-line-bot) 100%);
}

.bl-wm-bingo {
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.92em;
    background-image: linear-gradient(180deg, var(--bl-logo-bingo-top) 0%, var(--bl-logo-bingo-bot) 100%);
}

/* Same per-word logo fills in display headings (e.g. For venues hero) */
.bl-brand-wordmark--display {
    white-space: nowrap;
}

.bl-brand-wordmark--display .bl-wm-bingo {
    font-size: 1em;
}

/* Navbar: small asset (~75KB) for fast repeat loads */
.bl-logo-mark {
    width: auto;
    height: 48px;
    max-height: 48px;
    max-width: min(200px, 46vw);
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(34, 211, 238, 0.35)) drop-shadow(0 0 10px rgba(236, 72, 153, 0.28));
}

/* Home hero + login: medium asset (~315KB) */
.bl-home-logo-wrap {
    filter: drop-shadow(0 0 28px rgba(236, 72, 153, 0.45)) drop-shadow(0 0 36px rgba(34, 211, 238, 0.28)) drop-shadow(0 0 48px rgba(251, 191, 36, 0.12));
}

.bl-home-hero-logo {
    display: block;
    width: 100%;
    max-width: min(520px, 94vw);
    height: auto;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 992px) {
    .bl-home-hero-logo {
        max-width: min(480px, 44vw);
        margin-left: 0;
        margin-right: auto;
    }
}

.bl-login-logo {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 220px;
    filter: drop-shadow(0 0 22px rgba(236, 72, 153, 0.4)) drop-shadow(0 0 28px rgba(34, 211, 238, 0.22));
}

.bl-brand-word {
    font-weight: 800;
    letter-spacing: 0.02em;
    background: linear-gradient(100deg, var(--bl-pink-hot) 0%, var(--bl-pink) 38%, var(--bl-cyan-bright) 72%, var(--bl-cyan) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent !important;
    line-height: 1.1;
}

/* ---------- Buttons (logo: BINGO = warm CTA, Line = cyan) ---------- */
.btn-bl-cta {
    --bs-btn-color: #1a0a00;
    --bs-btn-bg: transparent;
    --bs-btn-border-color: transparent;
    background: linear-gradient(135deg, #fde047 0%, #fb923c 45%, #ea580c 100%);
    border: 1px solid rgba(234, 88, 12, 0.55);
    color: #1a0a00 !important;
    font-weight: 700;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn-bl-cta:hover,
.btn-bl-cta:focus {
    filter: brightness(1.06);
    color: #1a0a00 !important;
}

.btn-bl-cta:active {
    filter: brightness(0.97);
}

.btn-bl-cyan {
    background: linear-gradient(135deg, #7dd3fc 0%, #22d3ee 50%, #0ea5e9 100%);
    border: 1px solid rgba(14, 165, 233, 0.55);
    color: #0f172a !important;
    font-weight: 700;
}

.btn-bl-cyan:hover,
.btn-bl-cyan:focus {
    filter: brightness(1.05);
    color: #0f172a !important;
}

.btn-outline-bl {
    color: var(--bl-text) !important;
    border-color: rgba(248, 250, 252, 0.4) !important;
    font-weight: 600;
}

.btn-outline-bl:hover,
.btn-outline-bl:focus {
    background: rgba(248, 250, 252, 0.08);
    border-color: rgba(248, 250, 252, 0.65) !important;
    color: #ffffff !important;
}

.btn-outline-bl-muted {
    color: var(--bl-text-muted) !important;
    border-color: rgba(203, 213, 225, 0.35) !important;
}

.btn-outline-bl-muted:hover,
.btn-outline-bl-muted:focus {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(203, 213, 225, 0.55) !important;
    color: var(--bl-text) !important;
}

/* ---------- Surfaces ---------- */
.bl-hero {
    position: relative;
    overflow: hidden;
    border-radius: 1.25rem;
    /* Keep border + shadow only so an inline hero photo `background-image` is not overwritten */
    border: 1px solid rgba(236, 72, 153, 0.42);
    box-shadow:
        0 0 0 1px rgba(34, 211, 238, 0.15),
        0 0 40px rgba(236, 72, 153, 0.14),
        0 0 48px rgba(34, 211, 238, 0.1),
        inset 0 0 80px rgba(2, 6, 23, 0.25);
    min-height: 320px;
    background-size: cover;
    background-position: center;
    background-color: rgba(6, 12, 28, 0.65);
}

.bl-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(
        118deg,
        rgba(2, 6, 23, 0.93) 0%,
        rgba(7, 12, 28, 0.78) 40%,
        rgba(3, 8, 22, 0.55) 58%,
        rgba(2, 6, 23, 0.9) 100%
    );
    pointer-events: none;
}

/* Home: taller hero, lighter scrim on the right so the logo reads clearly */
.bl-hero--home {
    min-height: 380px;
}

@media (min-width: 992px) {
    .bl-hero--home {
        min-height: 440px;
    }

    .bl-hero--home::after {
        background: linear-gradient(
            105deg,
            rgba(2, 6, 23, 0.94) 0%,
            rgba(7, 14, 30, 0.82) 38%,
            rgba(3, 10, 26, 0.45) 52%,
            rgba(2, 6, 23, 0.72) 100%
        );
    }
}

.bl-hero .bl-hero-inner {
    position: relative;
    z-index: 1;
}

.bl-card {
    background:
        radial-gradient(120% 80% at 0% 0%, rgba(236, 72, 153, 0.07), transparent 45%),
        radial-gradient(100% 70% at 100% 0%, rgba(34, 211, 238, 0.06), transparent 42%),
        linear-gradient(165deg, rgba(12, 22, 42, 0.98) 0%, rgba(8, 16, 34, 0.99) 50%, rgba(6, 12, 28, 0.99) 100%);
    border: 1px solid var(--bl-card-border);
    border-radius: 1rem;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    color: var(--bl-text);
}

.bl-card .fw-semibold {
    color: var(--bl-text);
}

.bl-card h1,
.bl-card h2,
.bl-card h3,
.bl-card h4,
.bl-card h5,
.bl-card .h1,
.bl-card .h2,
.bl-card .h3,
.bl-card .h4,
.bl-card .h5 {
    color: var(--bl-text);
}

/* KnpPaginator on dark background */
.pagination .page-link {
    background-color: rgba(8, 16, 36, 0.92);
    border-color: rgba(148, 163, 184, 0.32);
    color: #e2e8f0;
}

.pagination .page-link:hover,
.pagination .page-link:focus {
    background-color: rgba(56, 189, 248, 0.18);
    border-color: rgba(56, 189, 248, 0.45);
    color: #ffffff;
}

.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #7dd3fc, #0ea5e9);
    border-color: rgba(14, 165, 233, 0.8);
    color: #0f172a;
}

.bl-map-frame {
    border: 1px solid rgba(56, 189, 248, 0.28) !important;
    box-shadow: 0 0 0 1px rgba(244, 114, 182, 0.08);
}

.bl-glow-btn {
    box-shadow: 0 0 28px rgba(251, 146, 60, 0.35), 0 0 20px rgba(244, 114, 182, 0.15);
}

/* Hero / headings: magenta (Beat) → cyan (Line) → yellow–orange (BINGO), aligned with logo + header wordmark */
.text-gradient {
    background: linear-gradient(
        95deg,
        var(--bl-logo-beat-top) 0%,
        var(--bl-logo-beat-bot) 26%,
        var(--bl-logo-line-top) 48%,
        var(--bl-logo-line-bot) 64%,
        var(--bl-logo-bingo-top) 86%,
        var(--bl-logo-bingo-bot) 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Small caps / labels on dark */
.bl-kicker {
    color: #bae6fd;
    letter-spacing: 0.12em;
}

/* ---------- Forms ---------- */
.form-control,
.form-select {
    background-color: rgba(8, 16, 36, 0.88);
    border-color: rgba(148, 163, 184, 0.28);
    color: var(--bl-text);
}

.form-control:focus,
.form-select:focus {
    background-color: rgba(10, 20, 42, 0.95);
    border-color: rgba(34, 211, 238, 0.65);
    color: var(--bl-text);
    box-shadow: 0 0 0 0.2rem var(--bl-focus-ring);
}

.form-label {
    color: var(--bl-text-muted);
}

/* ---------- Footer ---------- */
.bl-footer {
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.92) 0%, rgba(4, 10, 26, 0.78) 100%);
    border-top: 1px solid rgba(236, 72, 153, 0.2) !important;
    box-shadow: inset 0 1px 0 rgba(34, 211, 238, 0.08);
    color: var(--bl-text-muted) !important;
}

.bl-footer a {
    color: #e2e8f0 !important;
    text-decoration: none;
}

.bl-footer a:hover {
    color: var(--bl-cyan) !important;
    text-decoration: underline;
}

.bl-footer-copy {
    color: var(--bl-text) !important;
}

/* Inline links on dark pages (stronger than default link-secondary) */
a.link-bl {
    color: #7dd3fc;
    font-weight: 600;
    text-decoration: none;
}

a.link-bl:hover,
a.link-bl:focus {
    color: #bae6fd;
    text-decoration: underline;
}

/* Card / section headings — cyan line colour, high contrast */
.bl-heading-accent {
    color: #7dd3fc !important;
    font-weight: 700;
    text-shadow: 0 0 24px rgba(34, 211, 238, 0.12);
}

/* Venue cards: keep titles bright when wrapped in stretched links */
a.bl-venue-card {
    color: inherit;
}

a.bl-venue-card h3,
a.bl-venue-card .h5 {
    color: var(--bl-text);
}

a.bl-venue-card:hover h3,
a.bl-venue-card:hover .h5 {
    color: #ffffff;
}

/* ---------- Alerts (flash) ---------- */
.alert-success {
    --bs-alert-color: #052e16;
    --bs-alert-bg: #bbf7d0;
    --bs-alert-border-color: #86efac;
}

.alert-danger .btn-close {
    filter: none;
}
