/* Focused presentation layer for the review edition. PHP, SQL and access rules
   remain the existing PlatKelv application; this file only changes its look. */
:root {
  --navy: #112b3b;
  --teal: #087c68;
  --teal-dark: #066653;
  --mint: #7fe0c1;
  --paper: #f3f6f7;
  --line: #dce5e8;
  --muted: #647687;
  --shadow: 0 14px 38px rgb(17 43 59 / 8%);
}

body { background: var(--paper); color: #162a3a; }
.container { width: min(1280px, calc(100% - 48px)); }
.site-header { position: sticky; top: 0; box-shadow: 0 3px 18px rgb(15 35 48 / 5%); }
.header-inner { min-height: 82px; gap: 24px; }
.brand { gap: 12px; }
.brand-mark { width: 48px; height: 48px; object-fit: contain; }
.brand-type > span { font-size: 23px; }
.site-nav { gap: clamp(12px, 1.55vw, 22px); }
.nav-link { font-size: 13px; }
.nav-link.is-active::after { bottom: -31px; border-radius: 4px 4px 0 0; }
.nav-account { border-radius: 10px; background: #f8fbfc; }
.button { border-radius: 10px; box-shadow: 0 5px 12px rgb(8 124 104 / 12%); }
.button-secondary { box-shadow: none; }
.card, .newlook-filter-card, .newlook-gate-card, .newlook-upgrade-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.newlook-page { padding-top: 38px; }
.newlook-page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin: 0 0 28px;
}
.newlook-page-heading h1 { max-width: 850px; margin: 0 0 12px; font-size: clamp(34px, 4vw, 52px); }
.newlook-page-heading p:not(.kicker) { max-width: 760px; color: var(--muted); font-size: 16px; }
.newlook-status-pill {
  flex: 0 0 auto;
  padding: 9px 14px;
  border: 1px solid #c9e8df;
  border-radius: 999px;
  background: #eaf8f3;
  color: #09634f;
  font-size: 12px;
  font-weight: 750;
}
.newlook-status-pill.is-premium { border-color: #d9c9f7; background: #f3edff; color: #633aa0; }
.newlook-filter-card { margin-bottom: 18px; padding: 18px; background: #fff; }
.newlook-filter-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.5fr) minmax(170px, .8fr) minmax(180px, 1fr) auto;
  align-items: end;
  gap: 14px;
}
.newlook-filter-row .form-field { margin: 0; color: #4c6071; font-size: 12px; font-weight: 700; }
.newlook-filter-row input, .newlook-filter-row select {
  width: 100%; min-height: 46px; margin-top: 7px; padding: 10px 13px;
  border: 1px solid #cedbe0; border-radius: 10px; background: #fbfdfe; color: #1b3040;
}
.newlook-filter-actions { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.newlook-feed-meta {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin: 18px 2px 20px; color: var(--muted); font-size: 13px;
}
.newlook-feed-meta strong { color: #20384b; font-size: 15px; }
.newlook-upgrade-card {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  margin: 0 0 22px; padding: 24px 28px; background: linear-gradient(110deg, #fff, #f1faf7);
}
.newlook-upgrade-card h2 { margin-bottom: 8px; font-size: 22px; }
.newlook-upgrade-card p:not(.kicker) { margin: 0; color: var(--muted); }
.newlook-gate-card { max-width: 760px; margin: 35px auto 80px; padding: clamp(26px, 5vw, 48px); background: #fff; text-align: center; }
.newlook-gate-card h2 { font-size: clamp(24px, 3vw, 34px); }
.newlook-gate-card p:not(.kicker) { max-width: 560px; margin: 0 auto 20px; color: var(--muted); }
.newlook-gate-card .newlook-filter-actions { justify-content: center; }
.newlook-reel-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(245px, 1fr)); gap: 20px; }
.newlook-reel-card { overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: var(--shadow); }
.newlook-reel-card video { display: block; width: 100%; aspect-ratio: 9 / 16; background: #102331; object-fit: contain; }
.newlook-reel-card > div { padding: 16px 18px 18px; }
.newlook-reel-card h2 { margin: 0 0 8px; font-size: 17px; }
.newlook-picks-grid { margin-top: 16px; }
body:not(.admin-body) .picks-grid.newlook-picks-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { body:not(.admin-body) .picks-grid.newlook-picks-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { body:not(.admin-body) .picks-grid.newlook-picks-grid { grid-template-columns: minmax(0, 1fr); } }
.newlook-home { padding-top: 32px; }
.newlook-home-hero {
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  overflow: hidden; min-height: 315px; padding: clamp(28px, 5vw, 54px);
  border: 1px solid #cfe3e1; border-radius: 24px;
  background: radial-gradient(circle at 88% 22%, rgb(127 224 193 / 35%), transparent 25%), linear-gradient(115deg, #fff 0%, #f0faf7 100%);
  box-shadow: var(--shadow);
}
.newlook-home-copy { max-width: 790px; }
.newlook-home-copy h1 { max-width: 760px; margin-bottom: 15px; font-size: clamp(39px, 5vw, 64px); }
.newlook-home-copy > p:not(.kicker):not(.newlook-home-note) { max-width: 640px; color: var(--muted); font-size: 18px; }
.newlook-home-copy .newlook-filter-actions { margin-top: 22px; }
.newlook-home-note { margin-top: 22px; color: #70818d; font-size: 12px; }
.newlook-home-mark { display: grid; flex: 0 0 185px; place-items: center; width: 185px; height: 185px; border: 1px solid #d9ebe5; border-radius: 28px; background: #fff; box-shadow: 0 18px 38px rgb(14 69 65 / 8%); }
.newlook-home-mark img { width: 140px; height: 140px; object-fit: contain; }
.newlook-home-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 22px 0 36px; }
.newlook-home-stats article { display: flex; min-height: 128px; flex-direction: column; justify-content: center; gap: 4px; padding: 20px 24px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: 0 8px 22px rgb(17 43 59 / 5%); }
.newlook-home-stats span { color: var(--muted); font-size: 12px; font-weight: 750; text-transform: uppercase; letter-spacing: .04em; }
.newlook-home-stats strong { color: #102d3c; font-size: 29px; line-height: 1.2; }
.newlook-home-stats small { color: var(--muted); }
.newlook-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.newlook-section-head h2 { margin: 0; font-size: clamp(24px, 3vw, 34px); }
.newlook-section-head > a { flex: 0 0 auto; font-weight: 700; text-decoration: none; }
.newlook-home-bottom { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 36px; padding: 26px 30px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.newlook-home-bottom h2 { margin-bottom: 8px; font-size: 24px; }
.newlook-home-bottom p:not(.kicker) { max-width: 650px; margin: 0; color: var(--muted); }

/* Admin desk: preserve the existing dark control-room identity and strengthen
   spacing, branding and the master-only tool toggle. */
.admin-body { background: #edf2f6; }
.admin-sidebar { background: linear-gradient(180deg, #0c2232 0%, #0b302f 100%); }
.admin-brand { display: flex !important; align-items: center; gap: 12px; min-height: 64px; }
.admin-brand img { width: 42px; height: 42px; flex: 0 0 auto; border-radius: 10px; object-fit: contain; background: #fff; }
.admin-brand-type { display: flex; flex-direction: column; color: #e8f6f3; font-size: 16px; font-weight: 800; line-height: 1.15; }
.admin-brand-type small { margin-top: 5px; color: #9eb8bd; font-size: 9px; font-weight: 700; letter-spacing: .12em; }
.admin-topbar { min-height: 76px; box-shadow: 0 5px 18px rgb(18 37 49 / 4%); }
.adm-mode-toggle { border-color: #9edcca !important; background: #eaf8f4 !important; color: #075f4e !important; font-weight: 750 !important; }
.adm-mode-toggle:hover { border-color: #55b79e !important; background: #dff4ed !important; }
.admin-main { padding-top: 28px; }
.admin-main > h1 { color: #132a3a; }
.admin-footer { color: #6b7d8b; }

@media (max-width: 980px) {
  .container { width: min(100% - 34px, 760px); }
  .header-inner { min-height: 74px; }
  .site-header { position: relative; }
  .newlook-filter-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .container { width: calc(100% - 28px); }
  .newlook-page { padding-top: 26px; }
  .newlook-page-heading { display: block; }
  .newlook-status-pill { display: inline-flex; margin-top: 2px; }
  .newlook-filter-row { grid-template-columns: 1fr; }
  .newlook-filter-card { padding: 14px; }
  .newlook-filter-actions { width: 100%; }
  .newlook-filter-actions .button { flex: 1; text-align: center; }
  .newlook-feed-meta { align-items: flex-start; flex-direction: column; gap: 4px; }
  .newlook-upgrade-card { align-items: flex-start; flex-direction: column; padding: 20px; }
  .newlook-home-hero { min-height: 0; padding: 27px 22px; }
  .newlook-home-mark { display: none; }
  .newlook-home-stats { grid-template-columns: 1fr; gap: 10px; margin: 16px 0 30px; }
  .newlook-home-stats article { min-height: 105px; }
  .newlook-section-head { align-items: flex-start; flex-direction: column; }
  .newlook-home-bottom { align-items: flex-start; flex-direction: column; padding: 21px; }
}


/* Clear win/source markers in the customer-facing tracker. */
.tracker-record { min-width: 0; }
.tracker-record-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 8px; }
.tracker-win-badge { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border: 1px solid rgba(5,150,105,.25); border-radius: 999px; background: rgba(5,150,105,.09); color: #047857; font-size: 12px; font-weight: 800; }
.tracker-origin { color: #64748b; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.tracker-record .compact-pick-card { height: calc(100% - 32px); }
@media (max-width: 520px) {
  .tracker-record-meta { align-items: flex-start; flex-direction: column; gap: 5px; }
}

/* Premium search follows the legacy content-and-sidebar layout. */
body:not(.admin-body) .premium-search-page .football-primary .picks-grid.newlook-picks-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1200px) {
  body:not(.admin-body) .premium-search-page .football-primary .picks-grid.newlook-picks-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  body:not(.admin-body) .premium-search-page .football-primary .picks-grid.newlook-picks-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Keep the Premium page comfortably framed while preserving the full advert rail. */
@media (min-width: 1201px) {
  body:not(.admin-body) .premium-search-page {
    width: min(1315px, calc(100% - 64px));
  }
}

/* Compact Free and Premium pick controls on phones. */
@media (max-width: 760px) {
  body:not(.admin-body) .newlook-page.free-picks-page .newlook-page-heading,
  body:not(.admin-body) .newlook-page.premium-search-page .newlook-page-heading {
    display: none !important;
  }
  body:not(.admin-body) .newlook-page.free-picks-page .newlook-filter-card,
  body:not(.admin-body) .newlook-page.premium-search-page .newlook-filter-card {
    padding: 12px;
    border-radius: 14px;
  }
  body:not(.admin-body) .newlook-page.free-picks-page .newlook-filter-row,
  body:not(.admin-body) .newlook-page.premium-search-page .newlook-filter-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 10px;
  }
  body:not(.admin-body) .newlook-page.free-picks-page .newlook-filter-row > .form-field,
  body:not(.admin-body) .newlook-page.premium-search-page .newlook-filter-row > .form-field {
    width: 100%;
    min-width: 0;
  }
  body:not(.admin-body) .newlook-page.free-picks-page .newlook-filter-row > .newlook-filter-actions,
  body:not(.admin-body) .newlook-page.premium-search-page .newlook-filter-row > .newlook-filter-actions {
    grid-column: 1 / -1;
  }
  body:not(.admin-body) .newlook-page.free-picks-page .newlook-filter-row .form-field,
  body:not(.admin-body) .newlook-page.premium-search-page .newlook-filter-row .form-field {
    font-size: 11px;
  }
  body:not(.admin-body) .newlook-page.free-picks-page .newlook-filter-row input,
  body:not(.admin-body) .newlook-page.free-picks-page .newlook-filter-row select,
  body:not(.admin-body) .newlook-page.premium-search-page .newlook-filter-row input,
  body:not(.admin-body) .newlook-page.premium-search-page .newlook-filter-row select {
    height: 40px;
    min-height: 40px;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin-top: 5px;
    padding: 8px 10px;
    border-radius: 9px;
    font-size: 14px;
    box-sizing: border-box;
  }
  body:not(.admin-body) .newlook-page.free-picks-page .newlook-filter-row input[type="date"],
  body:not(.admin-body) .newlook-page.premium-search-page .newlook-filter-row input[type="date"] {
    width: 100% !important;
    min-width: 0;
    max-width: 100% !important;
    height: 40px !important;
    min-height: 40px !important;
    font-size: 13px;
    padding: 0 !important;
    box-sizing: border-box;
    align-self: stretch;
  }
  body:not(.admin-body) .newlook-page.free-picks-page .newlook-filter-row input[type="date"]::-webkit-date-and-time-value,
  body:not(.admin-body) .newlook-page.premium-search-page .newlook-filter-row input[type="date"]::-webkit-date-and-time-value {
    height: 1.5em;
    min-height: 1.5em;
    line-height: 1.5em;
  }
  body:not(.admin-body) .newlook-page.free-picks-page .newlook-filter-row input[type="date"]::-webkit-datetime-edit,
  body:not(.admin-body) .newlook-page.premium-search-page .newlook-filter-row input[type="date"]::-webkit-datetime-edit {
    padding-inline: 8px;
  }
  body:not(.admin-body) .newlook-page.free-picks-page .newlook-filter-actions,
  body:not(.admin-body) .newlook-page.premium-search-page .newlook-filter-actions {
    width: 100%;
  }
  body:not(.admin-body) .newlook-page.free-picks-page .newlook-filter-actions .button,
  body:not(.admin-body) .newlook-page.premium-search-page .newlook-filter-actions .button {
    height: 40px;
    min-height: 40px;
    padding: 8px 12px;
    flex: 1 1 0;
    min-width: 0;
    box-sizing: border-box;
    text-align: center;
  }
}

@media (max-width: 360px) {
  body:not(.admin-body) .newlook-page.free-picks-page .newlook-filter-row,
  body:not(.admin-body) .newlook-page.premium-search-page .newlook-filter-row {
    grid-template-columns: minmax(0, 1fr);
  }
}
