/* BarPal venue aesthetics — switched via html[data-theme] */

/* —— Picker gate —— */
#venueTypeGate {
  max-width: 420px;
  margin: 0 auto;
  padding: 8px 0 40px;
}
#venueTypeGate .gate-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px 16px 20px;
  box-shadow: var(--shadow);
}
#venueTypeGate h2 {
  margin: 0 0 6px;
  font-size: 22px;
  font-family: var(--display-font, "Fraunces", Georgia, serif);
  color: var(--text);
}
#venueTypeGate .gate-lead {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}
.venue-type-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.venue-type-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  margin-top: 0;
  padding: 14px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,.28);
  color: var(--text);
  box-shadow: none;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
}
.venue-type-btn:hover { filter: brightness(1.08); }
.venue-type-btn .vt-ico {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 20px;
  flex-shrink: 0;
  background: rgba(255,255,255,.06);
}
.venue-type-btn .vt-copy { flex: 1; min-width: 0; }
.venue-type-btn .vt-name { display: block; font-size: 15px; }
.venue-type-btn .vt-desc {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  margin-top: 2px;
}
.venue-type-btn .vt-arrow {
  color: var(--amber);
  font-size: 18px;
  opacity: .85;
}
#changeVenueTypeBtn {
  margin-top: 0;
  width: auto;
}

/* Themed spotlight on Here tab */
#themeSpotlight {
  margin-bottom: 4px;
}
#themeSpotlight .spot-kicker {
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
#themeSpotlight .spot-title {
  font-size: 20px;
  font-weight: 700;
  font-family: var(--display-font, "Fraunces", Georgia, serif);
  color: var(--amber-hot);
  line-height: 1.2;
  margin: 0 0 6px;
}
#themeSpotlight .spot-sub {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 10px;
  line-height: 1.35;
}
#themeSpotlight .spot-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
#themeSpotlight .spot-actions button {
  margin-top: 0;
  width: auto;
  min-width: 0;
  flex: 1 1 auto;
}

/* —— Theme: Felt & Ember (pool / multi-game) —— */
html[data-theme="felt"] {
  --bg: #0c0708;
  --ink: #1a1208;
  --card: rgba(28, 16, 14, 0.82);
  --card-solid: #1c100e;
  --text: #f7efe4;
  --muted: #c4a992;
  --amber: #f0b35a;
  --amber-hot: #ffcf7a;
  --line: rgba(255, 210, 160, 0.14);
  --display-font: "Fraunces", Georgia, serif;
  --theme-color: #0c0708;
}
html[data-theme="felt"] body {
  background-color: #0c0708;
  background-image:
    radial-gradient(ellipse 120% 80% at 20% 30%, rgba(31,107,58,.35), transparent 55%),
    radial-gradient(ellipse 90% 70% at 90% 10%, rgba(240,179,90,.18), transparent 50%),
    linear-gradient(165deg, #1a100c 0%, #0c0708 50%, #12100a 100%);
  font-family: "DM Sans", system-ui, sans-serif;
}
html[data-theme="felt"] body::before,
html[data-theme="felt"] body::after { opacity: 0.4; }

/* —— Theme: Neon Dive —— */
html[data-theme="neon"] {
  --bg: #080608;
  --ink: #1a0810;
  --card: rgba(20, 8, 14, 0.82);
  --card-solid: #160810;
  --text: #ffe8f0;
  --muted: #c49aab;
  --amber: #ff2d55;
  --amber-hot: #ff6b8a;
  --line: rgba(255, 45, 85, 0.28);
  --display-font: "Outfit", "DM Sans", system-ui, sans-serif;
  --theme-color: #12080c;
}
html[data-theme="neon"] body {
  background-color: #080608;
  background-image:
    radial-gradient(circle at 15% 20%, rgba(255,40,80,.32), transparent 40%),
    radial-gradient(circle at 85% 70%, rgba(0,255,200,.12), transparent 45%),
    repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(0,0,0,.12) 3px, rgba(0,0,0,.12) 4px),
    linear-gradient(180deg, #12080c, #080608 60%, #101018);
  font-family: "Outfit", "DM Sans", system-ui, sans-serif;
}
html[data-theme="neon"] body::before,
html[data-theme="neon"] body::after { display: none; }
html[data-theme="neon"] .brand h1,
html[data-theme="neon"] #themeSpotlight .spot-title {
  text-shadow: 0 0 18px rgba(255,45,85,.45);
}
html[data-theme="neon"] button:not(.secondary):not(.chip) {
  box-shadow: 0 0 16px rgba(255,45,85,.35);
}
html[data-theme="neon"] .tabs button.on {
  background: #ff2d55;
  color: #fff;
  box-shadow: 0 0 14px rgba(255,45,85,.4);
}

/* —— Theme: Velvet Hour (cocktail / dating) —— */
html[data-theme="velvet"] {
  --bg: #0c0a0f;
  --ink: #1a1410;
  --card: rgba(28, 20, 30, 0.82);
  --card-solid: #161018;
  --text: #f6f0e8;
  --muted: #b5a494;
  --amber: #c4a574;
  --amber-hot: #e8d5a8;
  --line: rgba(212, 184, 140, 0.22);
  --display-font: "Playfair Display", Georgia, serif;
  --theme-color: #0c0a0f;
}
html[data-theme="velvet"] body {
  background-color: #0c0a0f;
  background-image:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(180,140,90,.18), transparent 55%),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(90,40,70,.32), transparent 50%),
    linear-gradient(165deg, #141018 0%, #0c0a0f 50%, #120e14 100%);
  font-family: "DM Sans", system-ui, sans-serif;
}
html[data-theme="velvet"] body::before,
html[data-theme="velvet"] body::after { display: none; }
html[data-theme="velvet"] .brand h1,
html[data-theme="velvet"] #themeSpotlight .spot-title,
html[data-theme="velvet"] #venueTypeGate h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 600;
}
html[data-theme="velvet"] button {
  border-radius: 10px;
}
html[data-theme="velvet"] .tabs button.on {
  background: linear-gradient(180deg, #e8d5a8, #c4a574);
  color: #1a1410;
}

/* —— Theme: Scoreboard (sports) —— */
html[data-theme="score"] {
  --bg: #07140e;
  --ink: #041208;
  --card: rgba(13, 40, 24, 0.88);
  --card-solid: #0d2818;
  --text: #eef7f0;
  --muted: #8fb89a;
  --amber: #00c853;
  --amber-hot: #7dffb3;
  --line: rgba(0, 200, 83, 0.28);
  --display-font: "Bebas Neue", "Impact", system-ui, sans-serif;
  --theme-color: #07140e;
}
html[data-theme="score"] body {
  background-color: #07140e;
  background-image:
    linear-gradient(rgba(0,255,120,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,255,120,.035) 1px, transparent 1px),
    linear-gradient(180deg, #0b1f14 0%, #07140e 40%, #0a0c10 100%);
  background-size: 22px 22px, 22px 22px, auto;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
}
html[data-theme="score"] body::before,
html[data-theme="score"] body::after { display: none; }
html[data-theme="score"] .brand h1,
html[data-theme="score"] #themeSpotlight .spot-title {
  font-family: "Bebas Neue", Impact, sans-serif;
  letter-spacing: 0.04em;
  font-weight: 400;
}
html[data-theme="score"] button {
  border-radius: 6px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
}
html[data-theme="score"] .tabs button.on {
  background: #00c853;
  color: #041208;
  box-shadow: none;
}
html[data-theme="score"] .card {
  border-radius: 10px;
  border-width: 2px;
}

/* —— Theme: Afterglow (dance / live music) —— */
html[data-theme="afterglow"] {
  --bg: #08060f;
  --ink: #12081c;
  --card: rgba(30, 12, 48, 0.72);
  --card-solid: #1a0e2a;
  --text: #f3e9ff;
  --muted: #b9a0d4;
  --amber: #c44cff;
  --amber-hot: #ff7ad9;
  --line: rgba(200, 120, 255, 0.28);
  --display-font: "Outfit", "DM Sans", system-ui, sans-serif;
  --theme-color: #08060f;
}
html[data-theme="afterglow"] body {
  background-color: #08060f;
  background-image:
    radial-gradient(ellipse 100% 60% at 50% -10%, rgba(160,80,255,.4), transparent 55%),
    radial-gradient(circle at 20% 80%, rgba(255,40,160,.22), transparent 40%),
    radial-gradient(circle at 90% 60%, rgba(40,200,255,.16), transparent 40%),
    linear-gradient(180deg, #12081c, #08060f 55%, #0e0614);
  font-family: "Outfit", "DM Sans", system-ui, sans-serif;
}
html[data-theme="afterglow"] body::before,
html[data-theme="afterglow"] body::after { display: none; }
html[data-theme="afterglow"] button:not(.secondary):not(.chip) {
  background: linear-gradient(90deg, #c44cff, #ff3d9a);
  color: #fff;
  box-shadow: 0 8px 22px rgba(255,61,154,.3);
}
html[data-theme="afterglow"] .tabs button.on {
  background: linear-gradient(90deg, rgba(196,76,255,.55), rgba(255,61,154,.55));
  color: #fff;
}
html[data-theme="afterglow"] .card {
  border-radius: 22px;
  backdrop-filter: blur(12px);
}

/* Hide main app chrome until theme picked */
html:not([data-theme]) #appShell { display: none !important; }
html[data-theme] #venueTypeGate { display: none !important; }
html:not([data-theme]) #venueTypeGate { display: block; }
html[data-theme] #appShell { display: block; }
