/* ============================================
   Theme: cacaw
   Built around the screaming seagull gif (/images/birds/seagull.gif): the gif's
   cobalt sky is the page sky and the post the gull stands on is the slate ground
   that carries the name. Every color below was sampled from the gif.

   How themes work
   - style.css holds layout only; every color lives in a theme file.
   - The home page, /chirpers, /memes and /destinations load /css/themes/<THEME>.css, THEME
     comes from .env (unset or unknown falls back to cacaw). After changing .env
     run `docker compose up -d app`.

   New theme
   1. Copy this file (or sky.css, minimal.css) to public/css/themes/<name>.css
      and change the values.
   2. Rebuild (`docker compose up -d --build app`), then set THEME=<name>.
   Bring an old look back: set THEME to its file name (sky, minimal, seagull, beach).
   ============================================ */

:root {
  color-scheme: dark;

  /* Surfaces and text. Small text only ever sits on slate or on the deep top of
     the sky, so it stays at 4.5:1 or better. */
  --bg-deep: #182939;                      /* page base, overscroll below the ground */
  --bg-surface: #1b2e40;                   /* spare surface */
  --bg-card: #22374a;                      /* cards: a piece of the post */
  --bg-input: #182939;                     /* inputs, darker than the card they sit in */
  --border: rgba(247, 245, 239, 0.16);
  --border-hover: rgba(247, 245, 239, 0.42);
  --text: #f7f5ef;                         /* gull white */
  --text-dim: #e6edf4;
  --text-muted: #b4c2d0;                   /* on slate only */

  /* Accent: the gull's white on slate */
  --accent: #f7f5ef;                       /* buttons, focus */
  --on-accent: #182939;                    /* text on --accent */
  --accent-text: #b8dcff;                  /* links and small accent text */
  --accent-strong: #ffffff;                /* focus ring */
  --accent-dim: rgba(247, 245, 239, 0.14);
  --accent-glow: rgba(247, 245, 239, 0.35);
  --melody: #f7f5ef;                       /* chirper notes */

  /* Status (shown on slate) */
  --danger: #ffb4b4;
  --success: #8ee6b4;

  /* Home page scene, top to bottom: sky above the gif, the gif's own sky beside it,
     the horizon where the post meets the ground, the ground, the footer */
  --on-sky: #ffffff;                                  /* logo, "This site belongs to" */
  --hero-sky: linear-gradient(180deg, #0450a8 0%, #055bc0 60%, #0566cd 100%);
  --stage-sky: linear-gradient(180deg,
      #0566cd 0%, #076cd6 8%, #0572e0 15%, #0277eb 25%, #017cf0 40%,
      #0381f4 52%, #0988f8 62%, #1792fc 70%, #2a98f6 76%, #3a8bcb 81%,
      #34556f 87%, #2d4458 93%, #2b3f51 100%);
  --ground: linear-gradient(180deg, #2b3f51 0%, #253a4d 45%, #1d3043 100%);
  /* Dark weathering drips, like the ones running down the gull's post */
  --ground-texture: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='480' height='480'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.07 0.005' numOctaves='2' seed='11' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.05 0 0 0 0 0.09 0 0 0 0 0.14 0 0 0 0.65 -0.31'/%3E%3C/filter%3E%3Crect width='480' height='480' filter='url(%23g)'/%3E%3C/svg%3E");
  --on-ground: #f7f5ef;
  --on-ground-dim: #c9d4de;
  --footer-bg: #142333;
  --scream: rgba(247, 245, 239, 0.62);                /* outline of the CA-CAWWW! echo */

  /* Clouds in the gif's soft lavender white, wispy edges */
  --hero-pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 700' preserveAspectRatio='xMidYMid slice'%3E%3Cdefs%3E%3Cfilter id='b' x='-20%25' y='-40%25' width='140%25' height='180%25'%3E%3CfeGaussianBlur stdDeviation='4'/%3E%3C/filter%3E%3C/defs%3E%3Cg fill='%23eef1f7' filter='url(%23b)'%3E%3Cg opacity='0.9'%3E%3Ccircle cx='120' cy='215' r='46'/%3E%3Ccircle cx='175' cy='183' r='62'/%3E%3Ccircle cx='245' cy='205' r='50'/%3E%3Ccircle cx='295' cy='230' r='34'/%3E%3Cellipse cx='205' cy='240' rx='135' ry='28'/%3E%3C/g%3E%3Cg opacity='0.85'%3E%3Ccircle cx='1170' cy='95' r='34'/%3E%3Ccircle cx='1215' cy='70' r='48'/%3E%3Ccircle cx='1270' cy='88' r='38'/%3E%3Ccircle cx='1305' cy='108' r='26'/%3E%3Cellipse cx='1235' cy='112' rx='100' ry='22'/%3E%3C/g%3E%3Cg opacity='0.7'%3E%3Ccircle cx='70' cy='430' r='26'/%3E%3Ccircle cx='102' cy='412' r='36'/%3E%3Ccircle cx='140' cy='426' r='28'/%3E%3Ccircle cx='164' cy='440' r='19'/%3E%3Cellipse cx='118' cy='446' rx='74' ry='16'/%3E%3C/g%3E%3Cg opacity='0.8'%3E%3Ccircle cx='1250' cy='400' r='38'/%3E%3Ccircle cx='1298' cy='372' r='52'/%3E%3Ccircle cx='1356' cy='394' r='40'/%3E%3Ccircle cx='1394' cy='414' r='28'/%3E%3Cellipse cx='1318' cy='420' rx='110' ry='24'/%3E%3C/g%3E%3Cg opacity='0.55'%3E%3Ccircle cx='470' cy='70' r='16'/%3E%3Ccircle cx='490' cy='58' r='22'/%3E%3Ccircle cx='516' cy='66' r='17'/%3E%3Ccircle cx='532' cy='76' r='12'/%3E%3Cellipse cx='500' cy='80' rx='48' ry='10'/%3E%3C/g%3E%3Cg opacity='0.5'%3E%3Ccircle cx='985' cy='230' r='18'/%3E%3Ccircle cx='1010' cy='215' r='25'/%3E%3Ccircle cx='1040' cy='226' r='19'/%3E%3Ccircle cx='1060' cy='238' r='13'/%3E%3Cellipse cx='1020' cy='242' rx='56' ry='12'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  --hero-pattern-size: cover;
  --hero-name: linear-gradient(var(--on-ground), var(--on-ground));

  /* Page sky behind /chirpers, /memes and /destinations: the gif's sky, kept deep enough
     that white text holds 4.5:1 all the way down */
  --page-sky: linear-gradient(180deg, #0450a8 0%, #0559bd 40%, #016cd8 100%);
  --page-clouds: var(--hero-pattern);
  --page-clouds-size: cover;
}

/* Flat buttons: no glow, no lift */
.btn-primary,
.btn-primary:hover { box-shadow: none; transform: none; }
.btn-primary:hover { filter: brightness(0.9); }

/* "No chirpers yet" sits on the open sky, not in a card */
.notes-empty,
.notes-empty a { color: var(--text); }
