/* ================= THANKSGIVING THEME =================
   Autumn harvest look: warm browns, pumpkin orange, cranberry and gold, with leaves drifting in the corner.
   season.py adds this file to every page during the Thanksgiving season only. */
:root {
  color-scheme: dark;
  --pip-royal: #7c2d12;
  --pip-blue: #e8590c;
  --pip-bright: #f59f00;
  --pip-cyan: #ffd43b;
  --gradient: linear-gradient(135deg, #7c2d12, #d9480f 50%, #f59f00);
  --bg: #120a06;
  --surface: #1e120b;
  --surface-2: #2a1a10;
  --border: #4a2e1b;
  --text: #fff4e6;
  --muted: #d2b49a;
  --accent: #e8590c;
  --accent-hover: #f76707;
  --accent-text: #ffffff;
  --link: #ffa94d;
  --focus: #f59f00;
  --gold: #fab005;
  --gold-soft: #3b2410;
}
body {
  background:
    radial-gradient(circle at 90% 4%, rgba(245, 159, 0, .22), rgba(232, 89, 12, .08) 16%, transparent 32%),
    radial-gradient(circle at 4% 100%, rgba(176, 42, 55, .22), transparent 42%),
    var(--bg) fixed;
  background-attachment: fixed;
}
/* leaves falling down the whole page, behind the cards (the SVG animates itself) */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: url("/static/thanksgiving-fall.svg") center / cover no-repeat;
}
/* leaves falling from the mouse pointer (thanksgiving.js makes them) */
.tg-leaf {
  position: fixed; z-index: 9999; pointer-events: none; user-select: none; line-height: 1;
  font-size: var(--size, 18px); transform: translate(-50%, -50%);
  animation: tg-leaf-fall var(--time, 1.8s) ease-in forwards;
}
@keyframes tg-leaf-fall {
  0% { opacity: 0; transform: translate(-50%, -50%) rotate(0deg) scale(.6); }
  12% { opacity: 1; transform: translate(-50%, -50%) rotate(20deg) scale(1); }
  100% { opacity: 0; transform: translate(calc(-50% + var(--dx, 0px)), 120px) rotate(var(--spin, 180deg)) scale(.9); }
}
main, .topbar, footer { position: relative; z-index: 1; }
.topbar { background: rgba(30, 18, 11, .92); border-bottom-color: #5c3820; box-shadow: 0 1px 18px rgba(232, 89, 12, .15); z-index: 3; }
/* a leaf garland hanging under the top bar, swinging a little */
.topbar::after {
  content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 34px; pointer-events: none;
  background: url("/static/thanksgiving-garland.svg") 0 0 / 220px 40px repeat-x;
  transform-origin: top center; animation: garland-swing 5s ease-in-out infinite;
}
@keyframes garland-swing { 50% { transform: translateY(2px) skewX(-1deg); } }
/* the home banner keeps its autumn gradient, with a "Happy Thanksgiving" badge */
.overview-hero, .home-hero { position: relative; overflow: hidden; box-shadow: 0 10px 40px rgba(124, 45, 18, .4); }
.overview-hero::before, .home-hero::before {
  content: "🦃 Happy Thanksgiving! 🥧"; position: absolute; inset: 12px 16px auto auto; font-size: 14px; font-weight: 700;
  padding: 4px 12px; border-radius: 999px; background: rgba(255, 255, 255, .18); color: #fff; pointer-events: none;
  animation: feast-bob 3.2s ease-in-out infinite;
}
@keyframes feast-bob { 50% { transform: translateY(-3px) rotate(-2deg); } }
@media (max-width: 700px) { .overview-hero::before, .home-hero::before { display: none; } }
/* section headings get a leaf, buttons warm up on hover */
.card > h2::after { content: " 🍁"; font-size: .8em; opacity: .85; }
button:not(.secondary):not(.danger):hover, .button:hover { box-shadow: 0 4px 16px rgba(232, 89, 12, .35); }
@media (prefers-reduced-motion: reduce) {
  body::after, .topbar::after, .overview-hero::before, .home-hero::before { animation: none; }
  body::before { display: none; }
}
.card { box-shadow: 0 0 0 1px rgba(245, 159, 0, .04), 0 8px 24px rgba(0, 0, 0, .35); }
.guild:hover, .card.review:hover { border-color: var(--accent); box-shadow: 0 0 18px rgba(232, 89, 12, .25); }
.hero .logo.lg { filter: drop-shadow(0 10px 40px rgba(245, 159, 0, .45)); }
.hero .accent { background: linear-gradient(90deg, #e8590c, #fab005); -webkit-background-clip: text; background-clip: text; color: transparent; }
.badge.premium { color: #2b1203; }
.side-nav { background: var(--surface); }
.side-nav a.active { box-shadow: inset 3px 0 0 var(--accent); }
::selection { background: #f59f00; color: #2b1203; }
