/* ============================================================================
   Swink design system — modern, sporty, premium, minimal.
   Green/blue accents on white; dark-mode ready via [data-bs-theme].
   Brand colors are injected as --brand-primary / --brand-secondary in _Layout.
   ========================================================================== */

:root {
    --brand-primary: #a3d11e;   /* Swink lime */
    --brand-secondary: #1e56d6; /* Swink court blue */
    --brand-primary-ink: #3f6212; /* readable dark-green for text on light bg */
    --ink: #0f172a;
    --ink-2: #475569;
    --muted-2: #64748b;
    --surface: #ffffff;
    --surface-2: #f8fafc;
    --border: #e2e8f0;
    --radius: 18px;
    --radius-sm: 12px;
    --shadow-sm: 0 1px 2px rgba(15,23,42,.06), 0 4px 12px rgba(15,23,42,.05);
    --shadow-md: 0 8px 30px rgba(15,23,42,.10);
    --shadow-lg: 0 20px 50px rgba(15,23,42,.16);
    --grad: linear-gradient(120deg, var(--brand-primary), var(--brand-secondary));
}

[data-bs-theme="dark"] {
    --brand-primary-ink: #d9f99d;
    --ink: #f1f5f9;
    --ink-2: #cbd5e1;
    --muted-2: #94a3b8;
    --surface: #0f172a;
    --surface-2: #111c33;
    --border: #24324a;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
    --shadow-md: 0 8px 30px rgba(0,0,0,.45);
    --shadow-lg: 0 20px 50px rgba(0,0,0,.55);
    --bs-body-bg: #0b1220;
    --bs-body-color: var(--ink);
}

body {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    color: var(--ink);
    background: var(--bs-body-bg, #fff);
    -webkit-font-smoothing: antialiased;
}

h1,h2,h3,h4,h5,.display-1,.display-2,.display-3 { font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif; letter-spacing: -.02em; color: var(--ink); }
.text-gradient { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.text-muted-2 { color: var(--muted-2) !important; }
main.with-navbar { padding-top: 74px; }
a { color: var(--brand-secondary); text-decoration: none; }
a:hover { color: var(--brand-primary-ink); }
.section { padding: 5rem 0; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-weight: 800; font-size: .78rem; color: var(--brand-secondary); }

/* ── Navbar ─────────────────────────────────────────────────────────────── */
.swink-navbar {
    background: color-mix(in srgb, var(--surface) 82%, transparent);
    backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: all .3s ease;
}
.swink-navbar.scrolled { border-bottom-color: var(--border); box-shadow: var(--shadow-sm); }
.swink-navbar .navbar-brand { font-family: 'Outfit'; font-size: 1.35rem; color: var(--ink); }
.swink-navbar .navbar-brand i { margin-right: .35rem; }
.swink-navbar .nav-link { color: var(--ink-2); font-weight: 600; padding: .5rem .9rem !important; border-radius: 10px; transition: .2s; }
.swink-navbar .nav-link:hover { color: var(--brand-primary); background: color-mix(in srgb, var(--brand-primary) 8%, transparent); }

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn { border-radius: 999px; font-weight: 700; padding: .6rem 1.4rem; transition: transform .15s ease, box-shadow .2s ease; }
.btn:active { transform: translateY(1px); }
.btn-brand { background: var(--brand-primary); color: #14260a; border: none; box-shadow: 0 8px 20px color-mix(in srgb, var(--brand-primary) 45%, transparent); }
.btn-brand:hover { color: #14260a; transform: translateY(-2px); box-shadow: var(--shadow-md); filter: brightness(1.05); }
.btn-outline-brand { border: 2px solid var(--brand-primary); color: var(--brand-primary-ink); background: transparent; }
.btn-outline-brand:hover { background: var(--brand-primary); color: #14260a; }
.btn-blue { background: var(--brand-secondary); color: #fff; border: none; }
.btn-blue:hover { color: #fff; filter: brightness(1.08); transform: translateY(-2px); }
.btn-icon { border: 1px solid var(--border); background: var(--surface); color: var(--ink-2); border-radius: 12px; width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.btn-icon:hover { color: var(--brand-primary); }

/* ── Cards ──────────────────────────────────────────────────────────────── */
.card, .swink-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease;
}
.swink-card.hover-lift:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card-media { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.pill { display: inline-flex; align-items: center; gap: .35rem; font-size: .75rem; font-weight: 700; padding: .3rem .7rem; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--border); }
.pill-primary { background: color-mix(in srgb, var(--brand-primary) 22%, transparent); color: var(--brand-primary-ink); border-color: transparent; font-weight: 800; }

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero {
    position: relative; min-height: 92vh; display: flex; align-items: center;
    background: linear-gradient(rgba(23,26,33,.82), rgba(15,40,110,.78)), url('/img/hero-bg.png') center/cover no-repeat;
    color: #fff;
}
.hero-logo { max-width: 420px; width: 100%; border-radius: 16px; margin-bottom: 1.5rem; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.navbar-logo { height: 44px; border-radius: 9px; display: block; }
.footer-logo { height: 46px; border-radius: 9px; }
.hero h1 { color: #fff; font-size: clamp(2.6rem, 6vw, 4.8rem); line-height: 1.02; }
.hero .lead { color: rgba(255,255,255,.9); font-size: 1.2rem; max-width: 620px; }
.hero-badges { display: flex; gap: 1.5rem; flex-wrap: wrap; margin-top: 2rem; }
.hero-badge { display: flex; flex-direction: column; }
.hero-badge b { font-family: 'Outfit'; font-size: 1.8rem; }

/* ── Feature / stat tiles ───────────────────────────────────────────────── */
.feature-icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 1.4rem; color: #fff; background: var(--grad); margin-bottom: 1rem; }
.stat-tile { text-align: center; padding: 1.5rem; }
.stat-tile .num { font-family: 'Outfit'; font-size: 2.4rem; font-weight: 800; }

/* ── Auth split screen ──────────────────────────────────────────────────── */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-visual { background: linear-gradient(rgba(4,20,12,.55), rgba(4,20,30,.7)), url('https://picsum.photos/seed/pickleball-auth/1200/1600') center/cover; color:#fff; padding: 3rem; display:flex; flex-direction:column; justify-content:space-between; }
.auth-form { display: flex; align-items: center; justify-content: center; padding: 2rem; background: var(--surface); }
.auth-form .inner { width: 100%; max-width: 420px; }
.form-control, .form-select { border-radius: var(--radius-sm); border-color: var(--border); padding: .7rem .9rem; background: var(--surface); color: var(--ink); }
.form-control:focus, .form-select:focus { border-color: var(--brand-primary); box-shadow: 0 0 0 .2rem color-mix(in srgb, var(--brand-primary) 20%, transparent); }
@media (max-width: 900px){ .auth-wrap { grid-template-columns: 1fr; } .auth-visual { display: none; } }

/* ── Pricing ────────────────────────────────────────────────────────────── */
.price-card.featured { border: 2px solid var(--brand-primary); box-shadow: var(--shadow-md); position: relative; }
.price-amount { font-family: 'Outfit'; font-size: 2.6rem; font-weight: 800; }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.swink-footer { background: var(--surface-2); border-top: 1px solid var(--border); padding: 3.5rem 0 1.5rem; margin-top: 4rem; }
.swink-footer h6 { font-weight: 800; margin-bottom: 1rem; }
.swink-footer a { display: block; color: var(--muted-2); padding: .2rem 0; }
.swink-footer a:hover { color: var(--brand-primary); }
.social-row { display: flex; gap: .6rem; margin-top: 1rem; }
.social-row a { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--border); }

/* ── Booking calendar / slots ───────────────────────────────────────────── */
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: .6rem; }
.slot { border: 1px solid var(--border); border-radius: 12px; padding: .7rem; text-align: center; cursor: pointer; background: var(--surface); transition: .15s; }
.slot:hover { border-color: var(--brand-primary); }
.slot.selected { background: var(--grad); color: #fff; border-color: transparent; }
.slot.unavailable { background: var(--surface-2); color: var(--muted-2); cursor: not-allowed; opacity: .6; text-decoration: line-through; }
.slot .t { font-weight: 700; }
.slot .p { font-size: .75rem; }

/* ── Admin shell ────────────────────────────────────────────────────────── */
.admin-body { background: var(--surface-2); }
.admin-shell { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.admin-sidebar { background: var(--ink); color: #cbd5e1; padding: 1.2rem; position: sticky; top: 0; height: 100vh; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.25) transparent; }
.admin-sidebar::-webkit-scrollbar { width: 8px; }
.admin-sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,.2); border-radius: 8px; }
.admin-sidebar .brand { color:#fff; font-family:'Outfit'; font-weight:800; font-size:1.3rem; padding:.5rem .75rem 1.5rem; }
.admin-sidebar a { display: flex; align-items: center; gap: .7rem; color: #cbd5e1; padding: .7rem .8rem; border-radius: 10px; margin-bottom: .2rem; font-weight: 600; }
.admin-sidebar a:hover, .admin-sidebar a.active { background: rgba(255,255,255,.08); color: #fff; }
.admin-main { padding: 1.8rem 2rem; }
.admin-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.kpi { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow-sm); }
.kpi .label { color: var(--muted-2); font-size: .82rem; font-weight: 600; }
.kpi .value { font-family: 'Outfit'; font-size: 1.9rem; font-weight: 800; }
@media (max-width: 992px){ .admin-shell { grid-template-columns: 1fr; } .admin-sidebar { position: static; height: auto; } }

/* ── Utility ────────────────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
.rating i { color: #f59e0b; }
.divider-soft { height: 1px; background: var(--border); border: 0; }
