/* ===== Page theme =====
   Every page uses this on <body>, so the whole site shares one look. */
body.theme-dark {
  background: #323031;
  color: white;
  font-family: sans-serif;
  text-align: center;
  padding: 0;
  margin: 0;
}

/* ===== Shared header (header.html, injected on every page) ===== */
.main-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
  margin-bottom: 0.5rem;
}
.main-header .logo-container {
  margin-bottom: 0.5rem;
}
.main-header .logo-container img {
  max-width: 800px;
  height: auto;
}
.header-sticky-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #323031;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #444;
}
.social-links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}
.social-links a {
  text-decoration: none;
  transition: transform 0.3s ease;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.social-links a:hover {
  transform: scale(1.1);
}
.social-links img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.nav-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
}
.stats-link {
  color: white;
  font-weight: bold;
  font-size: 1.2rem;
  transition: color 0.3s ease;
}
.stats-link:hover {
  color: #177e89;
}
.stats-link.current-page {
  color: #44b2c7;
}

/* ===== Universal link text style ===== */
a {
  text-decoration: none;
  text-transform: uppercase;
}

/* ===== Generic buttons (shared by every page) ===== */
button {
  background: #177E89;
  color: white;
  border: none;
  padding: 6px 14px;
  font-size: 1rem;
  border-radius: 5px;
  cursor: pointer;
  text-transform: uppercase;
}
button:hover {
  background: #44b2c7;
}
.button-container {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

/* ===== index.html: game review cards, search/filter controls ===== */
#searchBox {
  display: none;
  margin-top: 15px;
  margin-bottom: 1rem;
}
#searchTitle {
  padding: 8px;
  width: 80%;
  max-width: 300px;
  border-radius: 5px;
  border: 1px solid #ccc;
  font-size: 1rem;
}
#filtersBox {
  display: none;
  margin-bottom: 1rem;
}
#gameList {
  margin-top: 1.5rem;
}
#gameList .game {
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid #ccc;
  padding: 20px;
  margin-bottom: 30px;
  background: #084C61;
  border-radius: 10px;
  max-width: 700px;
  margin-inline: auto;
}
#gameList .game img {
  max-width: 100%;
  height: auto;
  border-radius: 5px;
  margin-bottom: 10px;
}
#gameList .game-title {
  font-weight: bold;
  font-size: 1.2rem;
  margin-top: 8px;
  margin-bottom: 16px;
}
#gameList .game-id {
  font-size: 0.75rem;
  color: #177E89;
  margin-top: 4px;
}
.spotify-link img {
  width: 32px;
  height: 32px;
  margin-bottom: 10px;
}
.tables-wrapper {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.scores-table, .comments-table {
  border-collapse: collapse;
  min-width: 200px;
}
.scores-table th, .scores-table td,
.comments-table th, .comments-table td {
  border: 1px solid #ccc;
  padding: 5px 10px;
  text-align: left;
}
.scores-table th, .comments-table th {
  background: #177E89;
}
.average-row td {
  background: #0c6b7d;
  font-weight: bold;
}
.comment-title-toggle {
  cursor: pointer;
  text-decoration: underline;
}
.comment-panel {
  margin-top: 6px;
  padding: 8px;
  background: #0c6b7d;
  border-radius: 6px;
}
.pagination-wrapper {
  margin-top: 20px;
  margin-bottom: 20px;
  text-align: center;
}
.pagination-nav-btn.prev { margin-right: 15px; padding: 5px 10px; }
.pagination-nav-btn.next { margin-left: 15px; padding: 5px 10px; }
.pagination-page-info { font-weight: bold; }
.game-buttons {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.video-wrapper {
  position: relative;
  width: 100%;
  max-width: 640px;
  aspect-ratio: 16 / 9;
  margin: 0 auto 10px;
}
.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 5px;
  border: none;
}
.watch-review-btn { background: #FF0000; }
.watch-review-btn:hover { background: #CC0000; }
.date-overlay {
  position: absolute; top: 8px; left: 1px;
  background-color: rgba(0,0,0,0.6); padding: 4px 10px;
  font-size: 0.75rem; border-radius: 4px; color: #f1f1f1; z-index: 1;
  max-width: 50%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.image-wrapper { position: relative; display: inline-block; width: 100%; }
.control-group { margin-bottom: 1.2rem; }
select {
  padding: 5px 10px; font-size: 1rem;
  border-radius: 5px; margin-left: 5px;
}
.score-pick span {
  display: inline-block; padding: 5px 10px; margin: 2px;
  background: #177E89; border-radius: 5px; cursor: pointer;
}
.score-pick span.active { background: #44b2c7; font-weight: bold; }

/* ===== about.html: host cards ===== */
.about-section {
  padding: 2rem;
}
.blurb {
  margin-bottom: 3rem;
  width: 800px;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
.blurb h1 {
  color: #177E89;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.hosts-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
}
.host-card {
  width: 300px;
  background-color: #084C61;
  padding: 1.5rem;
  border-radius: 10px;
}
.host-card img {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
}
.host-card h2 {
  font-size: 1.5rem;
  color: #177E89;
}
.host-card p {
  font-size: 0.9rem;
  margin: 1rem 0;
}
.host-card ul {
  list-style-type: none;
  padding: 0;
  text-align: left;
  margin-top: 1rem;
}
.host-card ul li {
  margin-bottom: 0.5rem;
}

/* ===== stats.html ===== */
#stats .stat { margin-bottom: 1rem; }
#stats .year-select { margin-bottom: 1rem; padding: 5px; font-size: 1rem; }
#stats table { margin: 2rem auto; border-collapse: collapse; color: #eee; }
#stats th, #stats td { padding: 4px 8px; border: 1px solid #666; }
#stats ul { list-style: none; padding-left: 0; }
#stats td[data-tooltip] { position: relative; cursor: help; }
#stats td[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute; bottom: 125%; left: 50%; transform: translateX(-50%);
  background: #444; color: #fff; padding: 10px 14px; border-radius: 6px; border: 4px solid white;
  white-space: pre-wrap; font-size: 1rem; line-height: 1.5;
  max-width: 700px; min-width: 500px; z-index: 999; opacity: 0;
  pointer-events: none; transition: opacity .2s ease-in-out;
  box-shadow: 0 2px 10px rgba(0,0,0,.4);
}
#stats td[data-tooltip]:hover::after { opacity: 1; }

/* ===== guesses.html ===== */
#guessesTable {
  margin: 2rem auto;
  border-collapse: separate;
  border-spacing: 0;
  color: #eee;
  font-size: 0.95rem;
  width: 95%;
  max-width: 1000px;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(0,0,0,0.4);
}
#guessesTable th, #guessesTable td {
  padding: 12px 16px;
  border-bottom: 1px solid #444;
  text-align: left;
}
#guessesTable th {
  background-color: #333;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}
#guessesTable tr.correct         { background-color: #1e442f; }
#guessesTable tr.perfect-correct { background-color: #3b5f1f; }
#guessesTable tr:hover           { background-color: #2c2c2c; }
.page-guesses a { color: #4ebbe4; }
h3 a.breadcrumb-link { color: #ffffff; }
.plain-link { color: #ffffff; }
.filters {
  margin: 1.5rem auto;
  max-width: 1000px;
  text-align: left;
}

/* ===== scouter.html ===== */
.separator-line { margin-top: 0.5rem; margin-bottom: 0.5em; padding: 0.1rem; border: 1px solid #ccc; }
.filter-buttons { margin-bottom: 15px; display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.time-filter-row { background: rgba(0,0,0,0.2); padding: 10px; border-radius: 8px; max-width: 600px; margin: 0 auto 20px auto; }
.filter-btn { background: #177E89; color: white; border: none; padding: 8px 16px; border-radius: 5px; cursor: pointer; font-weight: bold; }
.filter-btn.pagination-btn { background: #4a4e69; }
.filter-btn.active, .filter-btn:hover { background: #44b2c7; }
.filter-btn[data-cat="Moon"].active { background: #2ECC71; color: black; }
.filter-btn[data-cat="Trajectory"].active { background: #fc9117; color: black; }
.filter-btn[data-cat="Trash"].active { background: #E74C3C; color: white; }
.filter-btn[data-cat="Stale"].active { background: #95a5a6; color: black; }
.filter-btn[data-cat="Dropped"].active { background: #d35400; color: white; }
.badge-Stale { background: #95a5a6; color: black; }
.badge-Dropped { background: #d35400; color: white; }
.time-btn { background: #4a4e69; color: white; border: none; padding: 6px 14px; border-radius: 5px; cursor: pointer; font-size: 0.9rem; }
.time-btn.active, .time-btn:hover { background: #9a8c98; color: black; font-weight: bold; }
#scouterList .game { display: flex; flex-direction: column; align-items: center; border: 1px solid #ccc; padding: 20px; margin-bottom: 30px; background: #084C61; border-radius: 10px; max-width: 700px; margin-inline: auto; text-align: left; position: relative; }
#scouterList .game img { width: 100%; max-width: 460px; height: auto; border-radius: 5px; margin-bottom: 10px; border: 2px solid #177E89; }
#scouterList .game-title { font-weight: bold; font-size: 1.5rem; margin-bottom: 5px; text-align: center; }
.game-title-link { color: white; text-decoration: none; }
.game-meta { font-size: 0.9rem; color: #a8d5e2; margin-bottom: 15px; text-align: center; }
.game-tags { margin-top: 5px; }
.game-desc { background: rgba(0,0,0,0.3); padding: 15px; border-left: 4px solid #177E89; border-radius: 4px; font-style: italic; margin-bottom: 15px; width: 100%; box-sizing: border-box; }
.game-desc.review-highlight { border-left-color: #fc9117; background: rgba(252, 145, 23, 0.1); }
.game-added-date { font-size: 0.75rem; color: #ccc; }
.badge { display: inline-block; padding: 5px 10px; border-radius: 20px; font-weight: bold; font-size: 0.85rem; margin-bottom: 10px; }
.badge-Moon { background: #2ECC71; color: black; }
.badge-Trajectory { background: #fc9117; color: black; }
.badge-Trash { background: #E74C3C; color: white; }
.upgrade-banner { background: linear-gradient(90deg, #fc9117, #2ECC71); color: black; font-weight: bold; text-align: center; width: 100%; padding: 6px; border-radius: 5px; margin-bottom: 15px; font-size: 0.95rem; text-shadow: 0 1px 1px rgba(255,255,255,0.3); box-sizing: border-box; }
.release-date-tag { font-size: 0.85rem; background: #222; padding: 4px 8px; border-radius: 4px; display: inline-block; margin-bottom: 10px; color: #ccc; }
.pagination-container { display: flex; justify-content: center; align-items: center; gap: 15px; margin-top: 20px; margin-bottom: 50px; }
.pagination-info { font-weight: bold; font-size: 1.1rem; color: #ccc; }
.scouter-info-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.scouter-info-modal.open { display: flex; }
.scouter-info-box {
  background: #084C61;
  border: 1px solid #177E89;
  border-radius: 10px;
  max-width: 640px;
  max-height: 80vh;
  overflow-y: auto;
  padding: 25px 30px;
  text-align: left;
  position: relative;
}
.scouter-info-box h2 { margin-top: 0; color: #a8d5e2; }
.scouter-info-box dt { font-weight: bold; margin-top: 12px; }
.scouter-info-box dd { margin: 4px 0 0; color: #ddd; }
.scouter-info-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: #177E89;
}
