/* ============================================================================
   PlatKelv Predictor — Design Refresh Layer (Customer Site)
   ----------------------------------------------------------------------------
   Loaded AFTER site.css. Purely visual: colour, depth, typography polish.
   No layout logic, markup, or functionality depends on this file.
   To revert the whole redesign, remove the theme.css <link> in app/views.php
   (or restore Files/Backups/Pre-Design-Refresh-2026-10-26).
   ============================================================================ */

:root {
  --ink: #13243a;
  --navy: #0b1f33;
  --teal: #059669;
  --teal-dark: #047857;
  --mint: #6ee7b7;
  --paper: #f4f7fb;
  --line: #e2e8f0;
  --muted: #5b6b7f;
  --green: #047857;
  --green-bg: #ecfdf5;
  --orange: #c2410c;
  --orange-bg: #fff7ed;
  --gray-bg: #eef2f7;
  --radius: 18px;
  --shadow: 0 1px 2px rgb(15 23 42 / 4%), 0 8px 24px rgb(15 23 42 / 6%);

  /* New accent tokens */
  --pk-emerald: #10b981;
  --pk-teal: #0d9488;
  --pk-sky: #0ea5e9;
  --pk-indigo: #6366f1;
  --pk-gold: #f59e0b;
  --pk-gold-dark: #b45309;
  --pk-grad-brand: linear-gradient(135deg, #059669 0%, #0d9488 55%, #0891b2 100%);
  --pk-grad-night: linear-gradient(135deg, #0b1f33 0%, #0f2f45 50%, #064e3b 100%);
  --pk-grad-gold: linear-gradient(135deg, #fbbf24 0%, #f59e0b 60%, #d97706 100%);
  --pk-shadow-lift: 0 2px 4px rgb(15 23 42 / 5%), 0 16px 36px rgb(15 23 42 / 10%);
  --pk-ring: 0 0 0 4px rgb(16 185 129 / 18%);
}

/* ---------- Page canvas ---------- */
body {
  background:
    radial-gradient(1200px 520px at 100% -10%, rgb(14 165 233 / 7%), transparent 60%),
    radial-gradient(900px 480px at -10% 0%, rgb(16 185 129 / 8%), transparent 60%),
    var(--paper);
  background-attachment: fixed;
}
::selection { color: #fff; background: var(--teal); }
h1, h2, h3, h4 { color: var(--navy); }

/* ---------- Utility bar ---------- */
.utility-bar {
  background: var(--pk-grad-night);
  color: #cfe3ee;
  border-bottom: 1px solid rgb(255 255 255 / 6%);
}
.signal-dot { background: var(--mint); box-shadow: 0 0 0 3px rgb(110 231 183 / 22%); animation: pk-pulse 2.4s ease-in-out infinite; }
@keyframes pk-pulse { 0%, 100% { box-shadow: 0 0 0 2px rgb(110 231 183 / 25%); } 50% { box-shadow: 0 0 0 6px rgb(110 231 183 / 0%); } }

/* ---------- Header & navigation ---------- */
.site-header {
  background: rgb(255 255 255 / 92%);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid rgb(226 232 240 / 90%);
  box-shadow: 0 1px 0 rgb(255 255 255 / 70%) inset, 0 6px 20px rgb(15 23 42 / 4%);
}
.brand-accent,
.footer-brand span {
  background: var(--pk-grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.nav-link { color: #475569; transition: color .15s ease; }
.nav-link:hover, .nav-link.is-active { color: var(--teal); }
.nav-link.is-active::after {
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--pk-grad-brand);
}
.nav-account {
  border-color: #d5dee8;
  border-radius: 10px;
  transition: all .15s ease;
}
.nav-account:hover, .nav-account.is-active {
  color: var(--teal);
  background: var(--green-bg);
  border-color: #a7f3d0;
}

/* ---------- Buttons ---------- */
.button, a.button, button.button, input[type="submit"] {
  border: 0;
  border-radius: 10px;
  background: var(--pk-grad-brand);
  box-shadow: 0 1px 2px rgb(5 150 105 / 20%), 0 6px 16px rgb(5 150 105 / 18%);
  font-weight: 700;
  letter-spacing: .005em;
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.button:hover, a.button:hover, button.button:hover, input[type="submit"]:hover {
  background: var(--pk-grad-brand);
  filter: brightness(1.06) saturate(1.05);
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgb(5 150 105 / 22%), 0 10px 24px rgb(5 150 105 / 24%);
}
.button:active, a.button:active, button.button:active { transform: translateY(0); }
.button-secondary, a.button-secondary, button.button-secondary {
  color: var(--ink);
  background: #fff;
  border: 1px solid #d5dee8;
  box-shadow: 0 1px 2px rgb(15 23 42 / 4%);
}
.button-secondary:hover, a.button-secondary:hover, button.button-secondary:hover {
  color: var(--teal);
  background: var(--green-bg);
  border-color: #a7f3d0;
  filter: none;
  box-shadow: 0 4px 12px rgb(15 23 42 / 6%);
}
.button-danger { background: linear-gradient(135deg, #dc2626, #b91c1c); }

/* ---------- Kicker / eyebrow ---------- */
.kicker { color: var(--teal); font-weight: 700; letter-spacing: .12em; }
.kicker::before { height: 3px; border-radius: 3px; background: var(--pk-grad-brand); }

/* ---------- Hero ---------- */
.home-hero h1 > span,
.hero h1 > span {
  background: var(--pk-grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-panel,
.home-matchday {
  background:
    radial-gradient(420px 220px at 100% 0%, rgb(16 185 129 / 28%), transparent 70%),
    radial-gradient(360px 200px at 0% 100%, rgb(14 165 233 / 22%), transparent 70%),
    var(--pk-grad-night);
  border: 1px solid rgb(110 231 183 / 18%);
  box-shadow: 0 20px 44px rgb(11 31 51 / 22%);
}
.home-matchday-stats strong {
  background: linear-gradient(180deg, #ffffff 0%, #a7f3d0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Cards ---------- */
.card {
  border-color: rgb(226 232 240 / 95%);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.pick-card { transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.pick-card:hover { transform: translateY(-2px); box-shadow: var(--pk-shadow-lift); }

/* Compact prediction cards: crisp white with brand accent strip */
.pick-card.compact-pick-card,
.card.my-picks-summary-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 1px 2px rgb(15 23 42 / 4%), 0 6px 18px rgb(15 23 42 / 5%);
}
.pick-card.compact-pick-card::before {
  content: "";
  position: absolute;
  top: 0; left: 14px; right: 14px;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: var(--pk-grad-brand);
  opacity: .9;
  pointer-events: none;
}
.pick-card.compact-pick-card:hover { border-color: #a7f3d0; }
.compact-pick-meta .competition { color: #0f2b46; }
.compact-pick-pill {
  background: linear-gradient(135deg, #ecfdf5, #d1fae5);
  border-color: #6ee7b7;
  color: #047857;
  box-shadow: 0 1px 2px rgb(5 150 105 / 10%);
}
.compact-pick-confidence {
  border: 0;
  background: var(--pk-grad-night);
  color: #fff;
  box-shadow: 0 2px 8px rgb(11 31 51 / 18%);
}
.pick-market strong { color: var(--teal); }
.pick-probability strong { color: var(--navy); }
.probability-track { height: 5px; background: #e8eef5; }
.probability-track > span { background: var(--pk-grad-brand); }
.team-marker { border-color: var(--teal); background: var(--teal); }

/* ---------- Badges & notices ---------- */
.badge { border-radius: 999px; padding: 4px 10px; }
.notice {
  border: 1px solid #a7f3d0;
  border-left: 4px solid var(--pk-emerald);
  border-radius: 12px;
  background: linear-gradient(135deg, #ecfdf5, #f0fdfa);
  color: #065f46;
}
.notice-info {
  border-color: #bae6fd;
  border-left-color: var(--pk-sky);
  background: linear-gradient(135deg, #f0f9ff, #eff6ff);
  color: #0c4a6e;
}
.notice-premium {
  border-color: #fde68a;
  border-left-color: var(--pk-gold);
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  color: #78350f;
}

/* ---------- Tabs, filters, chips ---------- */
.matchday-tab { border-color: #d5dee8; color: #334155; }
.matchday-tab:hover { background: var(--green-bg); border-color: #6ee7b7; color: var(--teal); }
.matchday-tab.is-active {
  border-color: transparent;
  background: var(--pk-grad-brand);
  color: #fff;
  box-shadow: 0 4px 14px rgb(5 150 105 / 28%);
}
.filter-chip:has(input:checked) {
  border-color: #6ee7b7;
  background: var(--green-bg);
  color: var(--teal-dark);
}

/* ---------- Stats strip ---------- */
.stat.correct strong { color: var(--green); }
.stat.incorrect strong { color: var(--orange); }

/* ---------- Sidebar (prediction pages) ---------- */
.category-link { transition: color .15s ease, padding-left .15s ease; }
.category-link:hover { color: var(--teal); padding-left: 4px; }
.sidebar-premium {
  background:
    radial-gradient(300px 160px at 100% 0%, rgb(245 158 11 / 22%), transparent 70%),
    var(--pk-grad-night);
  border-color: transparent;
  box-shadow: 0 16px 36px rgb(11 31 51 / 22%);
}
.sidebar-premium .kicker { color: #fcd34d; }
.sidebar-premium .kicker::before { background: var(--pk-grad-gold); }
.sidebar-premium .button {
  background: var(--pk-grad-gold);
  color: #1f1300;
  box-shadow: 0 6px 18px rgb(245 158 11 / 30%);
}

/* ---------- Record banner ---------- */
.home-record-banner {
  border: 1px solid #a7f3d0;
  background:
    radial-gradient(500px 200px at 100% 0%, rgb(14 165 233 / 10%), transparent 70%),
    linear-gradient(120deg, #ecfdf5 0%, #f0fdfa 50%, #f0f9ff 100%);
  box-shadow: var(--shadow);
}

/* ---------- Membership plans ---------- */
.plan-card { border-radius: 20px; transition: transform .18s ease, box-shadow .18s ease; }
.plan-card:hover { transform: translateY(-3px); box-shadow: var(--pk-shadow-lift); }
.plan-card.featured, .plan-card.is-featured {
  border: 2px solid transparent;
  background:
    linear-gradient(#fff, #fff) padding-box,
    var(--pk-grad-gold) border-box;
  box-shadow: 0 18px 40px rgb(245 158 11 / 16%);
}
.plan-card .price, .plan-price {
  background: var(--pk-grad-night);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Forms ---------- */
input[type="text"], input[type="email"], input[type="password"], input[type="search"],
input[type="date"], input[type="number"], input[type="tel"], select, textarea {
  border-radius: 10px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
input[type="text"]:focus, input[type="email"]:focus, input[type="password"]:focus, input[type="search"]:focus,
input[type="date"]:focus, input[type="number"]:focus, input[type="tel"]:focus, select:focus, textarea:focus {
  border-color: var(--pk-emerald);
  box-shadow: var(--pk-ring);
  outline: none;
}
:focus-visible { outline-color: var(--pk-emerald); }

/* ---------- Empty states ---------- */
.empty { border-color: #cbd5e1; border-radius: 18px; background: rgb(255 255 255 / 70%); }
.empty-icon { color: var(--teal); background: linear-gradient(135deg, #ecfdf5, #e0f2fe); }

/* ---------- Footer (deep night) ---------- */
.site-footer {
  border-top: 0;
  background:
    radial-gradient(600px 240px at 90% 0%, rgb(16 185 129 / 14%), transparent 70%),
    var(--pk-grad-night);
  color: #b8cbd8;
}
.footer-brand { color: #fff; }
.footer-brand small,
.footer-about p,
.footer-note,
.footer-note p { color: #9fb4c4; }
.footer-note a, .footer-about a { color: var(--mint); }
.footer-bottom { border-top-color: rgb(255 255 255 / 10%); color: #8aa1b3; }
.footer-bottom a { color: #cfe3ee; }
.footer-bottom a:hover { color: var(--mint); }
.footer-divider { color: rgb(255 255 255 / 25%); }

/* ---------- Scrollbar ---------- */
@supports (scrollbar-color: auto) {
  html { scrollbar-color: #9fb3c8 transparent; }
}

/* ---------- Accessibility: respect reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .signal-dot { animation: none; }
  .pick-card, .plan-card, .button, a.button, button.button { transition: none; }
  .pick-card:hover, .plan-card:hover, .button:hover, a.button:hover, button.button:hover { transform: none; }
}
