/* Midan inner pages (venues, venue page, blog, article, contact, legal) in
   the night design. This layer sits on top of the page styles in
   landing.layouts.landing: it re-points their colour tokens at the night
   palette, swaps the type, and gives every page header a floodlit court. */

[data-theme="dark"] {
    --bg-0: #07130D;
    --bg-1: #0E2117;
    --bg-2: #0A1A11;
    --line: rgba(238, 243, 234, .13);
    --line-soft: rgba(238, 243, 234, .07);
    --ink-1: #EEF3EA;
    --ink-2: #AEBDB3;
    --ink-3: #7A8D82;
    --primary: #2F9A5C;
    --primary-deep: #8FD3A6;
    --primary-soft: rgba(47, 154, 92, .2);
    --primary-tint: rgba(47, 154, 92, .12);
    --mint: #8FD3A6;
    --shadow-sm: none;
    --shadow-md: 0 24px 60px -30px rgba(0, 0, 0, .7);
    --shadow-lg: 0 40px 90px -40px rgba(0, 0, 0, .8);
}

[data-theme="light"] {
    --bg-0: #EEF3EC;
    --bg-1: #F8FAF6;
    --bg-2: #E4ECE2;
    --primary: #0F4D2A;
    --primary-deep: #0B3A24;
}

/* ── Type ────────────────────────────────────────────── */
body,
body[dir="rtl"] {
    font-family: 'Readex Pro', system-ui, sans-serif;
    font-weight: 300;
    font-feature-settings: normal;
}
body strong, body b { font-weight: 600; }
.display,
body[dir="rtl"] .display,
.section-title,
main h1, main h2, main h3 {
    font-family: 'Changa', 'Readex Pro', sans-serif;
    font-weight: 700;
    letter-spacing: 0;
}
.mono,
body[dir="rtl"] .mono {
    font-family: 'Readex Pro', system-ui, sans-serif;
    font-variant-numeric: tabular-nums;
}
.eyebrow {
    font-family: 'Readex Pro', sans-serif !important;
    font-weight: 500 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    font-size: 13.5px !important;
}
.lang-pill, .lang-block { font-family: 'Readex Pro', sans-serif; }

/* The old grid wash and page-change veil give way to the touchline. */
body::before { display: none; }
.page-progress, .page-veil { display: none !important; }
::selection { background: rgba(143, 211, 166, .3); color: inherit; }

/* ── Buttons and cards ───────────────────────────────── */
.btn { border-radius: 999px; font-family: 'Readex Pro', sans-serif; font-weight: 500; }
.btn-primary {
    background: var(--cta-bg) !important;
    color: var(--cta-ink) !important;
    border: 0 !important;
    box-shadow: none;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 34px -8px rgba(var(--flood), .55); }
.btn-ghost {
    background: transparent !important;
    color: var(--ink-1) !important;
    border: 1px solid var(--line-strong) !important;
}
.btn-ghost:hover { background: var(--line) !important; }
.card {
    background: var(--bg-1);
    border-color: var(--line);
    border-radius: 18px !important;
    box-shadow: none;
    transition: border-color .3s, transform .3s, background-color .3s;
}
a.card:hover, .card:has(> a):hover { border-color: var(--line-strong); }
input, select, textarea {
    font-family: 'Readex Pro', sans-serif;
    background: var(--bg-2);
    color: var(--ink-1);
    border-color: var(--line-strong);
}
input::placeholder, textarea::placeholder { color: var(--ink-3); }

/* ── Page headers: a floodlit court ──────────────────── */
.stadiums-hero,
.stadium-show-hero,
.blog-hero,
.blog-article-hero,
.contact-hero,
.legal-hero,
.stadium-unavailable-section {
    position: relative;
    isolation: isolate;
    overflow: clip;
}
.stadiums-hero::before,
.stadium-show-hero::before,
.blog-hero::before,
.blog-article-hero::before,
.contact-hero::before,
.legal-hero::before,
.stadium-unavailable-section::before {
    content: "";
    position: absolute;
    inset: -40% -10% auto;
    height: 160%;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(40% 50% at 18% 0%, rgba(var(--flood), .22), transparent 70%),
        radial-gradient(40% 50% at 82% 0%, rgba(var(--flood), .18), transparent 70%),
        radial-gradient(70% 60% at 50% 100%, rgba(15, 77, 42, .5), transparent 75%);
}
.stadiums-hero::after,
.stadium-show-hero::after,
.blog-hero::after,
.blog-article-hero::after,
.contact-hero::after,
.legal-hero::after,
.stadium-unavailable-section::after {
    /* chalk markings of a pitch, fading out under the copy */
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: .16;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='-20 -20 1090 720' preserveAspectRatio='xMidYMid slice'><g fill='none' stroke='%23EEF3EA' stroke-width='3'><rect width='1050' height='680'/><path d='M525 0V680M0 138.5H165V541.5H0M1050 138.5H885V541.5H1050M0 248.5H55V431.5H0M1050 248.5H995V431.5H1050M165 266.9A91.5 91.5 0 0 1 165 413.1M885 266.9A91.5 91.5 0 0 0 885 413.1'/><circle cx='525' cy='340' r='91.5'/></g></svg>") center / cover no-repeat;
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 85%);
    mask-image: linear-gradient(to bottom, #000 0%, transparent 85%);
}
[data-theme="light"] .stadiums-hero::after,
[data-theme="light"] .stadium-show-hero::after,
[data-theme="light"] .blog-hero::after,
[data-theme="light"] .blog-article-hero::after,
[data-theme="light"] .contact-hero::after,
[data-theme="light"] .legal-hero::after,
[data-theme="light"] .stadium-unavailable-section::after { filter: invert(1); opacity: .08; }

/* ── Motion helpers (inner.js) ───────────────────────── */
.motion [data-rise] { will-change: transform, opacity; }

/* ── Venues without photos: their own court ─────────── */
.court-tile { display: block; width: 100%; height: 100%; }
.court-tile .ct-lines { fill: none; stroke: rgba(238, 243, 234, .8); stroke-width: 6; }
.court-tile .ct-apron { fill: #0B2416; }
.court-tile-football .ct-a { fill: #1C5E36; }
.court-tile-football .ct-b { fill: #19552F; }
.court-tile-padel .ct-apron { fill: #143A5E; }
.court-tile-padel .ct-field { fill: #2A5E94; }
.court-tile-basketball .ct-apron { fill: #4A311B; }
.court-tile-basketball .ct-field { fill: #8C5C30; }
.court-tile-basketball .ct-paint { fill: #8E4428; }
.court-tile-tennis .ct-apron { fill: #24543F; }
.court-tile-tennis .ct-field { fill: #2C5F84; }
.court-tile-volleyball .ct-apron { fill: #6A5536; }
.court-tile-volleyball .ct-field { fill: #A88A57; }
.stadium-card-court { aspect-ratio: 16 / 10; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.stadium-card:hover .stadium-card-court { transform: scale(1.06); }
.stadium-show-media .stadium-show-court { aspect-ratio: 4 / 3; border-radius: inherit; }
