/* =========================================================
   Action Photos — by Photo Booth Cincy
   Playful-modern: jet black banner, pink/gold accents, Oswald display
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Inter:wght@400;500;600&family=Bebas+Neue&display=swap');

:root {
  --ink: #0d0d0d;
  --ink-dk: #000000;
  --ink-soft: #4a4a4a;
  --ink-mute: #8a8a8a;
  --bg: #FAFAFA;
  --bg-dk: #F0F0F0;
  --panel: #ffffff;

  /* Photo Booth Cincy brand (from logo) — site chrome only */
  --pbc-navy: #1F4B73;
  --pbc-navy-dk: #143553;
  --pbc-teal: #2BB2BF;
  --pbc-teal-dk: #1E8B97;
  --pbc-teal-lt: #5FC9D3;
  --pbc-lime: #B8D04F;
  --pbc-lime-dk: #99B63A;

  /* Team-scoped accent — override per page via inline style or a theme class.
     Default is Lebanon maroon since that's what's in DB today. */
  --team-accent: #6B1F1F;
  --team-accent-dk: #4A1515;
  --team-accent-lt: #8B2F2F;

  --line: rgba(0, 0, 0, 0.12);

  --font-display: 'Oswald', 'Impact', sans-serif;
  --font-accent: 'Bebas Neue', 'Oswald', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --shadow-offset: 4px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---------- Banner (PBC chrome) ---------- */

.banner {
  background: linear-gradient(90deg, var(--pbc-navy-dk) 0%, var(--pbc-navy) 60%, #143b5f 100%);
  color: #fff;
  border-bottom: 3px solid var(--pbc-teal);
  position: relative;
  overflow: hidden;
}

.banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(135deg, transparent 0 22px, rgba(43, 178, 191, 0.08) 22px 23px);
  pointer-events: none;
}

.banner-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 18px;
  position: relative;
}

.banner-logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  background: #fff;
  padding: 6px 10px;
  border-radius: 6px;
  box-shadow: 0 2px 0 var(--pbc-lime);
  transition: transform 0.12s, box-shadow 0.12s;
}

.banner-logo-link:hover {
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 var(--pbc-lime);
}

.banner-logo {
  display: block;
  height: 44px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
}

.banner-title-link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  margin-left: 14px;
  padding: 4px 0;
}
.banner-title-link:hover .banner-title { color: var(--pbc-lime); }

.banner-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  line-height: 1;
  color: #fff;
  transition: color 0.12s;
}

.banner-sub {
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--pbc-lime);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  margin-top: 4px;
}

.banner-nav {
  margin-left: auto;
  display: flex;
  gap: 20px;
  align-items: center;
  position: relative;
}

.banner-nav a {
  color: #fff;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s, color 0.15s;
}

.banner-nav a:hover,
.banner-nav a.active {
  border-bottom-color: var(--pbc-lime);
  color: var(--pbc-lime);
}

/* ---------- Main layout ---------- */

.main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 2px solid var(--team-accent);
  flex-wrap: wrap;
}

.page-head-left h1 {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 700;
  color: var(--team-accent-dk);
  letter-spacing: -0.01em;
  text-transform: uppercase;
  line-height: 1;
}

.page-head-left .eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--team-accent);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 8px;
}

.page-head-right {
  display: flex;
  gap: 14px;
  align-items: center;
}

.stat-pill {
  background: #fff;
  border: 2px solid var(--team-accent);
  border-radius: 4px;
  padding: 6px 14px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--team-accent-dk);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.stat-pill span {
  color: var(--team-accent);
  margin-left: 6px;
  font-weight: 700;
}

/* ---------- Team tiles (homepage) ---------- */

.teams-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.team-tile {
  background: #fff;
  border: 2px solid var(--team-accent);
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s, box-shadow 0.15s;
  display: flex;
  flex-direction: column;
}

.team-tile:hover {
  transform: translate(-3px, -3px);
  box-shadow: var(--shadow-offset) var(--shadow-offset) 0 var(--team-accent);
}

.team-tile-hero {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--team-accent-lt), var(--team-accent-dk));
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 2px solid var(--team-accent-dk);
}

.team-tile-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(135deg, transparent 0 18px, rgba(255,255,255,0.05) 18px 19px);
  pointer-events: none;
}

/* Logo sits directly on the card's maroon gradient. Logo PNG must be transparent. */
.team-tile-hero .logo-chip {
  position: relative;
  z-index: 1;
  width: 55%;
  height: 82%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-tile-hero .logo-chip img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.35));
}

.team-tile-sport {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--pbc-lime);
  color: var(--pbc-navy-dk);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 3px;
  z-index: 2;
}

.team-tile-meta {
  padding: 1rem 1.25rem;
  border-top: 2px solid var(--team-accent);
  background: #fff;
}

.team-tile-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--team-accent-dk);
  text-transform: uppercase;
  letter-spacing: -0.005em;
  line-height: 1.1;
}

.team-tile-stats {
  display: flex;
  gap: 14px;
  margin-top: 8px;
  font-size: 12px;
  color: var(--ink-soft);
  font-weight: 500;
  letter-spacing: 0.04em;
}

.team-tile-stats strong {
  color: var(--team-accent);
  font-weight: 600;
}

/* ---------- Game cards ---------- */

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, 240px);
  gap: 1rem;
  justify-content: start;
}

.game-card {
  background: #fff;
  border: 2px solid var(--team-accent);
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s, box-shadow 0.15s;
  display: flex;
  flex-direction: column;
}

.game-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: var(--shadow-offset) var(--shadow-offset) 0 var(--team-accent);
}

.game-thumb {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--team-accent-lt), var(--team-accent-dk));
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.game-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.game-thumb-placeholder {
  color: rgba(255,255,255,0.4);
  font-size: 11px;
  font-family: var(--font-display);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.game-score-badge {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--pbc-lime);
  color: var(--team-accent-dk);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  padding: 5px 12px;
  letter-spacing: 0.04em;
  z-index: 2;
}

.game-score-badge.loss {
  background: #666;
  color: #fff;
}

.game-ha-badge {
  position: absolute;
  bottom: 10px;
  left: 10px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #fff;
  background: rgba(0,0,0,0.7);
  padding: 3px 9px;
  border-radius: 2px;
  text-transform: uppercase;
  z-index: 2;
}

.game-meta {
  padding: 0.75rem 1rem 0.9rem;
  border-top: 2px solid var(--team-accent);
  background: #fff;
}

.game-opponent {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--team-accent-dk);
  text-transform: uppercase;
  letter-spacing: -0.005em;
  line-height: 1.2;
}

.game-date {
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--team-accent);
  margin-top: 4px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
}

/* ---------- Empty state ---------- */

.empty {
  background: #fff;
  border: 2px dashed var(--team-accent);
  border-radius: 6px;
  padding: 3rem 2rem;
  text-align: center;
}

.empty h2 {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--team-accent-dk);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 8px;
}

.empty p {
  color: var(--ink-soft);
  font-size: 14px;
}

/* ---------- Services shoutout (PBC chrome) ---------- */

.services-cta {
  margin-top: 3rem;
  padding: 2rem;
  background: linear-gradient(135deg, var(--pbc-navy-dk) 0%, var(--pbc-navy) 100%);
  color: #fff;
  border-radius: 6px;
  border: 2px solid var(--pbc-navy-dk);
  position: relative;
  overflow: hidden;
}

.services-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(135deg, transparent 0 30px, rgba(43, 178, 191, 0.08) 30px 31px);
  pointer-events: none;
}

.services-cta-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: center;
}

.services-cta-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.services-photo {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  background: #0b1d30;
  border: 2px solid var(--pbc-teal-dk);
  border-radius: 6px;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}

.services-photo:hover {
  transform: translate(-2px, -2px);
  box-shadow: 3px 3px 0 var(--pbc-lime);
  border-color: var(--pbc-lime);
}

.services-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.services-photo-label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 6px 10px;
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.78) 100%);
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #fff;
}

.services-cta h2 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  line-height: 1.1;
  margin-bottom: 10px;
}

.services-cta h2 em {
  color: var(--pbc-lime);
  font-style: normal;
}

.services-cta p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 14px;
  max-width: 48ch;
}

.services-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.services-chip {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  padding: 5px 12px;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 20px;
}

.services-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  background: var(--pbc-lime);
  color: var(--pbc-navy-dk);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 4px;
  border: 2px solid var(--pbc-lime-dk);
  transition: transform 0.12s, box-shadow 0.12s, background 0.12s;
  white-space: nowrap;
}

.services-cta-btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 3px 3px 0 var(--pbc-teal);
  background: var(--pbc-lime-dk);
}

/* ---------- Footer (PBC chrome) ---------- */

.footer {
  background: var(--pbc-navy-dk);
  color: #fff;
  padding: 2rem 1.5rem;
  margin-top: 3rem;
  border-top: 3px solid var(--pbc-teal);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.footer-brand span { color: var(--pbc-teal); }

.footer-cred {
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.05em;
}

.footer-cred a {
  color: var(--pbc-lime);
  text-decoration: none;
  font-weight: 500;
}

.footer-cred a:hover { text-decoration: underline; }

/* ---------- Game detail + gallery ---------- */

.game-subhead {
  margin-top: 10px;
  font-size: 13px;
  color: var(--ink-soft);
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

.game-subhead a {
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  font-size: 12px;
}

.game-subhead a:hover { color: var(--team-accent); }

.game-date-big {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.gallery-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.gallery-hint {
  font-size: 12px;
  color: var(--ink-mute);
  letter-spacing: 0.02em;
}

.gallery-toolbar-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.inapp-warn {
  background: #fff3cd;
  border: 1.5px solid #ffb84d;
  color: #6b4a00;
  padding: 12px 16px;
  border-radius: 4px;
  margin-bottom: 14px;
  font-size: 13px;
  line-height: 1.45;
}
.inapp-warn em { color: #000; font-style: normal; font-weight: 600; }

.photo-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}

.photo-tile {
  position: relative;
  background: var(--bg-dk);
  border: 2px solid var(--team-accent);
  border-radius: 4px;
  padding: 0;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  cursor: zoom-in;
  transition: transform 0.12s, box-shadow 0.12s;
  -webkit-tap-highlight-color: transparent;
}

.photo-tile:hover {
  transform: translate(-2px, -2px);
  box-shadow: 3px 3px 0 var(--team-accent);
}

.photo-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

/* Checkmark indicator (hidden until select mode) */
.photo-check {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  border: 2px solid rgba(0, 0, 0, 0.35);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
  display: none;
  z-index: 2;
  transition: background 0.12s, border-color 0.12s;
}

.photo-check::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='white'%3E%3Cpath d='M7.5 13.5 4 10l-1.4 1.4L7.5 16.3l10-10L16.1 5 7.5 13.5z'/%3E%3C/svg%3E");
  background-size: 60%;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 0.12s;
}

body.select-mode .photo-check { display: block; }

body.select-mode .photo-tile { cursor: pointer; }

body.select-mode .photo-tile.selected {
  transform: none;
  box-shadow: 0 0 0 3px var(--team-accent);
}

body.select-mode .photo-tile.selected .photo-check {
  background: var(--team-accent);
  border-color: var(--team-accent);
}

body.select-mode .photo-tile.selected .photo-check::after { opacity: 1; }

/* ---------- Select action bar (bottom sticky, safe-area aware) ---------- */

.select-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--pbc-navy-dk);
  color: #fff;
  border-top: 2px solid var(--team-accent);
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
  z-index: 900;
  transform: translateY(100%);
  transition: transform 0.18s ease-out;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.25);
}

.select-bar.open { transform: translateY(0); }

.select-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.select-bar-count {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.select-bar-count strong { color: var(--pbc-lime); font-size: 16px; margin-right: 6px; }

.select-bar-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

/* smaller buttons for the action bar */
.btn.sb {
  padding: 10px 14px;
  font-size: 12px;
  letter-spacing: 0.12em;
  min-height: 44px;
}
.btn-outline.sb {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}
.btn-outline.sb:hover:not(:disabled) { background: rgba(255, 255, 255, 0.1); }

/* Push main content up when select bar is open, so the last row isn't hidden */
body.select-mode .main { padding-bottom: 140px; }

/* ---------- Save progress overlay ---------- */

.save-progress {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1100;
  padding: 20px;
}
.save-progress.open { display: flex; }

.save-progress-inner {
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 8px;
  padding: 24px;
  width: 100%;
  max-width: 340px;
  text-align: center;
}

.save-progress-title {
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.save-progress-bar {
  width: 100%;
  height: 8px;
  background: var(--bg-dk);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 8px;
}

.save-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--team-accent);
  transition: width 0.2s ease-out;
}

.save-progress-count {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.94);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
}

.lightbox.open { display: flex; }

.lightbox-img {
  max-width: 95vw;
  max-height: 90vh;
  object-fit: contain;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.lightbox-close,
.lightbox-nav,
.lightbox-download {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  font-family: var(--font-display);
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
  text-decoration: none;
}

.lightbox-close:hover,
.lightbox-nav:hover,
.lightbox-download:hover { background: var(--team-accent); color: #fff; border-color: var(--team-accent); }

.lightbox-close {
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  font-size: 28px;
  line-height: 1;
}

.lightbox-download {
  top: 20px;
  right: 76px;
  padding: 0 16px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  font-size: 42px;
  line-height: 1;
  padding-bottom: 6px;
}

.lightbox-nav.prev { left: 20px; }
.lightbox-nav.next { right: 20px; }

.lightbox-count {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.15em;
  background: rgba(0, 0, 0, 0.5);
  padding: 6px 14px;
  border-radius: 3px;
}

/* ---------- Admin ---------- */

.admin-wrap {
  max-width: 720px;
  margin: 2.5rem auto;
  padding: 0 1.5rem;
}

.admin-card {
  background: #fff;
  border: 2px solid var(--pbc-navy);
  border-radius: 6px;
  padding: 2rem;
}

.admin-card h2 {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--pbc-navy-dk);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--pbc-teal);
}

.form-row { margin-bottom: 1.1rem; }

.form-row label {
  display: block;
  font-family: var(--font-display);
  font-size: 12px;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  margin-bottom: 6px;
}

.form-row input[type="text"],
.form-row input[type="date"],
.form-row input[type="url"],
.form-row input[type="password"],
.form-row input[type="number"],
.form-row select {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid var(--line);
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 14px;
  background: #fff;
  transition: border-color 0.15s;
}

.form-row input:focus,
.form-row select:focus {
  outline: none;
  border-color: var(--pbc-teal);
}

.form-row input[type="file"] {
  width: 100%;
  padding: 10px 0;
  font-family: var(--font-body);
  font-size: 13px;
}

.form-inline {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-inline-3 {
  display: grid;
  grid-template-columns: auto 1fr 1fr;
  gap: 12px;
  align-items: end;
}

.form-help {
  font-size: 11px;
  color: var(--ink-mute);
  margin-top: 4px;
  letter-spacing: 0.02em;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: 2px solid var(--pbc-navy);
  border-radius: 4px;
  background: var(--pbc-navy);
  color: #fff;
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.1s, background 0.1s;
  text-decoration: none;
}

.btn:hover:not(:disabled) {
  transform: translate(-2px, -2px);
  box-shadow: 2px 2px 0 var(--pbc-teal);
  background: var(--pbc-navy-dk);
}

.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-outline {
  background: #fff;
  color: var(--pbc-navy);
}

.btn-outline:hover:not(:disabled) { background: var(--bg-dk); border-color: var(--pbc-teal); }

.btn-danger {
  background: #c0392b;
  border-color: #c0392b;
  font-size: 11px;
  padding: 6px 12px;
  letter-spacing: 0.1em;
}

.btn-danger:hover:not(:disabled) {
  background: #962d22;
  border-color: #962d22;
  box-shadow: 2px 2px 0 #f0a59c;
}

.alert {
  padding: 12px 16px;
  border-radius: 4px;
  margin-bottom: 1rem;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.alert-ok {
  background: #e8f5e9;
  color: #1b5e20;
  border: 1.5px solid #81c784;
}

.alert-err {
  background: #fde4e1;
  color: #8b1a0e;
  border: 1.5px solid #e57373;
}

.alert-info {
  background: var(--bg-dk);
  color: var(--ink);
  border: 1.5px solid var(--line);
}

/* admin game list */
.admin-list { margin-top: 2rem; }

.admin-list-item {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 10px;
  border: 1.5px solid var(--line);
  border-radius: 4px;
  margin-bottom: 8px;
  background: #fff;
}

.admin-list-thumb {
  width: 80px;
  aspect-ratio: 16 / 10;
  background: var(--bg-dk);
  border-radius: 3px;
  overflow: hidden;
}

.admin-list-thumb img { width: 100%; height: 100%; object-fit: cover; }

.admin-list-info { font-size: 13px; line-height: 1.4; }

.admin-list-info strong {
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--pbc-navy-dk);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  font-weight: 600;
}

.admin-list-info .meta {
  color: var(--ink-soft);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 2px;
}

.admin-list-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* Inline hero editor (expand on click) */
.hero-editor {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 8px;
  padding: 10px;
  background: var(--bg-dk);
  border-radius: 4px;
  margin-top: 8px;
}

.hero-editor-item {
  position: relative;
  aspect-ratio: 4 / 3;
  border: 2px solid transparent;
  border-radius: 3px;
  overflow: hidden;
  cursor: pointer;
  background: #000;
}

.hero-editor-item.current { border-color: var(--pbc-teal); box-shadow: 0 0 0 2px var(--pbc-teal-lt); }

.hero-editor-item img { width: 100%; height: 100%; object-fit: cover; }

.hero-editor-item-badge {
  position: absolute;
  bottom: 4px;
  left: 4px;
  background: var(--pbc-teal);
  color: #fff;
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.15em;
  padding: 2px 6px;
  border-radius: 2px;
}

/* ---------- Admin photo queue ---------- */

.photo-queue {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-top: 12px;
}

@media (max-width: 540px) {
  .photo-queue { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 380px) {
  .photo-queue { grid-template-columns: repeat(2, 1fr); }
}

.photo-queue:empty { display: none; }

.photo-queue-item {
  position: relative;
  aspect-ratio: 4 / 3;
  border: 1.5px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  background: var(--bg-dk);
  cursor: grab;
}

.photo-queue-item.hero {
  border: 2px solid var(--pbc-teal);
  box-shadow: 0 0 0 2px rgba(43, 178, 191, 0.25);
}

.photo-queue-item img { width: 100%; height: 100%; object-fit: cover; display: block; }

.photo-queue-hero-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  background: var(--pbc-teal);
  color: #fff;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  padding: 2px 7px;
  border-radius: 2px;
}

.photo-queue-controls {
  position: absolute;
  bottom: 4px;
  right: 4px;
  display: flex;
  gap: 3px;
}

.pq-btn {
  width: 26px;
  height: 26px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  background: rgba(255, 255, 255, 0.92);
  border-radius: 3px;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  color: var(--ink);
}

.pq-btn:hover:not(:disabled) { background: var(--pbc-teal); color: #fff; }
.pq-btn.danger:hover:not(:disabled) { background: #c0392b; color: #fff; }
.pq-btn.star { background: var(--pbc-lime); color: var(--pbc-navy-dk); }
.pq-btn.star:hover:not(:disabled) { background: var(--pbc-teal); color: #fff; }
.pq-btn:disabled { opacity: 0.35; cursor: not-allowed; }

.photo-queue-info {
  font-size: 12px;
  color: var(--ink-mute);
  margin-top: 8px;
  letter-spacing: 0.02em;
}

/* ---------- Responsive ---------- */

@media (max-width: 640px) {
  .banner-inner { padding: 1rem; gap: 12px; }
  .banner-title { font-size: 20px; }
  .banner-sub { font-size: 10px; letter-spacing: 0.18em; }
  .banner-nav { gap: 10px; margin-left: auto; }
  .banner-nav a { font-size: 11px; letter-spacing: 0.08em; }
  .banner-logo { height: 34px; max-width: 130px; }
  .banner-logo-link { padding: 4px 8px; }
  .banner-title-link { margin-left: 10px; }
  .main { padding: 1.5rem 1rem 3rem; }
  .page-head-left h1 { font-size: 26px; }
  .page-head { gap: 1rem; margin-bottom: 1.25rem; }
  .games-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; justify-content: start; }
  .teams-grid { grid-template-columns: 1fr; gap: 1rem; }
  /* Gallery: 2 cols on phone — easier to browse + tap for selection */
  .photo-gallery { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  /* Bigger tap target for checkmark on phones */
  .photo-check { width: 36px; height: 36px; top: 6px; right: 6px; }
  .admin-card { padding: 1.25rem; }
  .form-inline, .form-inline-3 { grid-template-columns: 1fr; }
  .admin-list-item { grid-template-columns: 60px 1fr; grid-template-rows: auto auto; }
  .admin-list-item .admin-list-actions { grid-column: 2; justify-self: start; }
  .services-cta-inner { grid-template-columns: 1fr; text-align: left; gap: 1.25rem; }
  .services-cta h2 { font-size: 22px; }
  .services-cta-photos { grid-template-columns: 1fr 1fr; }
  /* Lightbox controls sized for thumbs */
  .lightbox-close { width: 48px; height: 48px; top: 12px; right: 12px; }
  .lightbox-download { top: 12px; right: 68px; height: 48px; font-size: 11px; letter-spacing: 0.12em; padding: 0 12px; }
  .lightbox-nav { width: 52px; height: 52px; font-size: 36px; }
  .lightbox-nav.prev { left: 8px; }
  .lightbox-nav.next { right: 8px; }
  /* Select bar: stack label above actions on small screens */
  .select-bar-inner { flex-direction: column; align-items: stretch; gap: 8px; }
  .select-bar-actions { justify-content: space-between; }
  .select-bar-actions .btn { flex: 1; min-width: 0; padding: 10px 6px; }
  body.select-mode .main { padding-bottom: 180px; }
}

@media (max-width: 380px) {
  .photo-gallery { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .banner-sub { display: none; }
}
