/* New City Pike Anglers (Milton Keynes) theme - loaded AFTER app.css when
 * config brand.theme_css points here. Only overrides; app.css stays the single
 * source of layout.
 *
 * Palette measured from the NCPA logo: pure black background, lime green
 * ring/swooshes #7eb602 (bright #97d303, deep #669602), chrome-silver type.
 * Lime is too light for text on white (about 2.3:1), so links and text on
 * light backgrounds use deep green #4f7d00 (about 5:1); the bright lime is for
 * fills, buttons, switches and anything on black.
 */

:root {
  --bg: #f1f3ee;
  --bg-2: #e4e8dd;
  --surface: #ffffff;
  --surface-2: #f6f8f2;
  --ink: #141812;
  --ink-soft: #545b4e;
  --line: #d6dccd;

  --accent: #141812;          /* near-black buttons, white text */
  --accent-2: #4f7d00;        /* deep green - text-safe on white */
  --accent-ink: #ffffff;
  --accent-tint: rgba(126, 182, 2, 0.12);
  --red: #7eb602;             /* the BPFT "flag red" slot becomes NCPA lime */
  --red-ink: #0b0f05;
  --ncpa-lime: #7eb602;
  --ncpa-lime-text: #4f7d00;

  --deep-1: #000000;          /* header: black with a green glow, like the logo */
  --deep-2: #070a03;
  --deep-3: #0f1606;

  --water-1: #b8c4a6;         /* footer bands: grey-greens down to black */
  --water-2: #56663f;
  --water-deep: #070a03;

  --shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 8px 24px -8px rgba(0, 0, 0, 0.2);
  --shadow-lift: 0 2px 4px rgba(0, 0, 0, 0.08), 0 14px 32px -10px rgba(0, 0, 0, 0.34);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0c08;
    --bg-2: #0f120b;
    --surface: #161a12;
    --surface-2: #1d2218;
    --ink: #e9ede3;
    --ink-soft: #a3ad97;
    --line: #2d3426;

    --accent: #7eb602;        /* lime buttons, black text */
    --accent-2: #97d303;
    --accent-ink: #0b0f05;
    --accent-tint: rgba(126, 182, 2, 0.14);
    --red: #7eb602;
    --red-ink: #0b0f05;
    --ncpa-lime-text: #97d303;

    --deep-1: #000000;
    --deep-2: #050703;
    --deep-3: #0c1205;

    --water-1: #2c3622;
    --water-2: #1c2316;
    --water-deep: #070a03;
  }
}

a { color: var(--ncpa-lime-text); }

/* Header: black like the logo background, lime glow from below, and a
 * lime rule on top that fades out like the logo's swooshes. */
.topbar {
  background:
    radial-gradient(640px 200px at 50% 120%, rgba(126, 182, 2, 0.28), transparent 70%),
    linear-gradient(180deg, var(--deep-1) 0%, var(--deep-2) 65%, var(--deep-3) 100%);
}
.topbar::before {
  background: linear-gradient(90deg, transparent 0%, #669602 18%, #97d303 50%, #669602 82%, transparent 100%);
}

/* The logo is a 3:2 badge on black - it blends into the header, so drop the
 * BPFT banner frame and keep it compact enough for the nav to stay on screen. */
.brand { max-width: 290px; }
.brand-banner {
  aspect-ratio: 720 / 510;
  border-radius: 0;
  box-shadow: none;
}

.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--ncpa-lime); }

/* Primary action = lime, like the ring. Black text (about 9:1 on this lime)
 * reads in sunshine; white on lime would not. */
.btn-primary {
  color: #0b0f05;
  background: linear-gradient(135deg, #b4e83c 0%, #8cc80a 45%, #669602 100%);
  box-shadow: 0 6px 16px -6px rgba(102, 150, 2, 0.65);
}

/* Headings: a hint of the logo's chrome lettering in dark mode. */
@media (prefers-color-scheme: dark) {
  .match-head h1 {
    background: linear-gradient(180deg, #ffffff 0%, #d9dee2 55%, #9aa3aa 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
  }
}
