/* ============================================
   PSX PAL Database - Unified Styles
   ============================================ */

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --max-width-narrow: 800px;   /* For blog posts, simple text pages */
  --max-width-medium: 1000px;  /* Currently unused, reserved for future */
  --max-width-wide: 1200px;    /* Main content width - games, variants, case types */
  --max-width-full: 1600px;    /* For homepage grid only */
  --primary-color: #0066cc;
  --text-color: #333;
  --text-light: #666;
  --border-color: #e0e0e0;
  --background-light: #f5f5f5;
  --background-white: #fff;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background: var(--background-light);
}

/* ============================================
   HEADER AND NAVIGATION
   ============================================ */

.site-header {
  background: var(--background-white);
  border-bottom: 2px solid var(--primary-color);
  padding: 1.5rem 2rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.main-nav {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 3rem;
}

.logo {
  display: block;
  text-decoration: none;
}

.logo-img {
  height: 120px;
  width: auto;
  display: block;
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-menu li a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 400;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
}

.nav-menu li a:hover {
  color: var(--primary-color);
}

/* Search in Navigation */
#search {
  margin-left: auto;
  width: 400px;
  position: relative;
}

.pagefind-ui__search-input {
  padding: 0.5rem 1rem;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  font-size: 0.9rem;
  width: 100%;
}

.pagefind-ui__search-input:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Search Results Overlay */
#search .pagefind-ui__results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  max-height: 500px;
  overflow-y: auto;
  z-index: 1000;
  margin-top: 8px;
}

#search .pagefind-ui__results:empty {
  display: none;
}

/* ============================================
   MAIN CONTENT
   ============================================ */

.site-main {
  max-width: var(--max-width-wide);
  margin: 2rem auto;
  padding: 0 2rem;
  min-height: calc(100vh - 200px);
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
  background: var(--text-color);
  color: white;
  text-align: center;
  padding: 2rem;
  margin-top: 4rem;
}

.site-footer p {
  margin: 0;
}

/* ============================================
   BREADCRUMB (Used across multiple pages)
   ============================================ */

.breadcrumb {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.breadcrumb a {
  color: var(--primary-color);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb .separator {
  margin: 0 0.5rem;
  color: #999;
}

.breadcrumb .current {
  color: var(--text-color);
  font-weight: 500;
}

/* ============================================
   HOMEPAGE
   ============================================ */

.homepage {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 2rem;
  max-width: var(--max-width-full);
  margin: 0 auto;
  padding: 2rem;
}

.main-content {
  min-width: 0;
}

.welcome {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  margin-bottom: 2rem;
}

.welcome h1 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.recent-posts h2 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: var(--text-color);
}

.post-preview {
  background: white;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  border-left: 4px solid var(--primary-color);
}

.post-preview h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.4rem;
}

.post-preview h3 a {
  color: var(--primary-color);
  text-decoration: none;
}

.post-preview h3 a:hover {
  text-decoration: underline;
}

.post-meta {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.post-preview p {
  color: #555;
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.read-more {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}

.read-more:hover {
  text-decoration: underline;
}

.view-all {
  text-align: center;
  margin-top: 2rem;
}

.view-all a {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--primary-color);
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 500;
}

.view-all a:hover {
  background: #0052a3;
}

.no-posts {
  background: #f8f9fa;
  padding: 2rem;
  text-align: center;
  border-radius: 8px;
  color: var(--text-light);
  font-style: italic;
}

/* Sidebar */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sidebar-section {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.sidebar-section h3 {
  margin: 0 0 1rem 0;
  color: var(--primary-color);
  font-size: 1.2rem;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 0.5rem;
}

.browse-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.browse-links li {
  margin-bottom: 0.5rem;
}

.browse-links a {
  display: block;
  padding: 0.5rem 0.75rem;
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.2s;
}

.browse-links a:hover {
  background: #f0f0f0;
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding: 1rem;
}

.stats h3 {
  grid-column: 1 / -1;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.75rem;
  background: #f8f9fa;
  border-radius: 4px;
}

.stat-number {
  font-size: 2rem;
  font-weight: bold;
  color: var(--primary-color);
  line-height: 1;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 0.25rem;
}

/* Completeness Progress Bars */
.completeness {
  padding: 1.5rem;
}

.progress-item {
  margin-bottom: 1rem;
}

.progress-item:last-child {
  margin-bottom: 0;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.25rem;
  font-size: 0.85rem;
}

.progress-label span:first-child {
  color: #555;
}

.progress-percent {
  color: var(--primary-color);
  font-weight: 600;
}

.progress-bar {
  height: 8px;
  background: var(--border-color);
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #0066cc, #0088ff);
  border-radius: 4px;
  transition: width 0.3s ease;
}

/* ============================================
   GAME PAGES
   ============================================ */

.game-page {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  max-width: var(--max-width-wide);
  margin: 0 auto;
}

.game-header {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid #eee;
}

.game-info h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.release-date {
  color: var(--text-light);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.aka {
  background: #f5f5f5;
  padding: 1rem;
  border-left: 4px solid var(--primary-color);
  border-radius: 4px;
}

.aka h3 {
  margin-top: 0;
  font-size: 1rem;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.aka p {
  margin: 0.25rem 0;
}

.game-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.game-images img,
.cover-image {
  width: 100%;
  border: 2px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.no-image {
  background: #f0f0f0;
  border: 2px dashed #ccc;
  border-radius: 8px;
  padding: 3rem 1rem;
  text-align: center;
  color: #999;
  font-style: italic;
}

/* Game Content and Collector Notes */
.game-content-section,
.variant-content-section {
  margin: 1rem 0;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 4px;
}

.collector-notes {
  background: #fff9e6;
  border-left: 4px solid #ffb800;
  padding: 1rem;
  margin: 1rem 0;
  border-radius: 4px;
}

.collector-notes h3 {
  margin-top: 0;
  color: #cc8800;
  font-size: 1.1rem;
}

.markdown-content {
  line-height: 1.6;
}

.markdown-content p {
  margin: 0.5rem 0;
}

.markdown-content ul,
.markdown-content ol {
  margin: 0.5rem 0;
  padding-left: 1.5rem;
}

.markdown-content h1,
.markdown-content h2,
.markdown-content h3 {
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

/* ============================================
   VARIANTS TABLE (Games Page)
   ============================================ */

.releases {
  margin-top: 2rem;
}

.releases h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--text-color);
}

.variants-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2rem;
  background: white;
}

.variants-table thead {
  background: var(--text-color);
  color: white;
}

.variants-table th {
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  border-bottom: 3px solid var(--primary-color);
}

.variants-table td {
  padding: 1rem;
  border-bottom: 1px solid #eee;
  vertical-align: top;
}

.variants-table tbody tr {
  cursor: pointer;
  transition: all 0.2s ease;
}

.variants-table tbody tr:hover {
  background: #f0f7ff;
  transform: translateX(4px);
  box-shadow: -4px 0 0 var(--primary-color);
}

.variants-table tr:last-child td {
  border-bottom: none;
}

.variants-table small {
  color: var(--text-light);
  display: block;
  margin-top: 0.25rem;
  font-size: 0.9rem;
}

.variants-table a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
}

.variants-table a:hover {
  text-decoration: underline;
}

.image-icons {
  text-align: center;
  white-space: nowrap;
}

.image-icons a {
  text-decoration: none;
  font-size: 1.5rem;
  margin: 0 0.25rem;
  display: inline-block;
  transition: transform 0.2s ease;
}

.image-icons a:hover {
  transform: scale(1.2);
}

.release-banner {
  height: 24px;
  width: auto;
  display: inline-block;
  vertical-align: middle;
}

/* ============================================
   VARIANT PAGES
   ============================================ */

.variant-page {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  max-width: var(--max-width-wide);
  margin: 0 auto;
}

.variant-header {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid #eee;
}

.variant-images {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.barcode-image {
  position: absolute;
  bottom: 0.5rem;
  right: 0.5rem;
  width: 125px;
  border: 2px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.variant-page h1 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
}

.release-info-compact {
  background: #f8f9fa;
  border-left: 4px solid var(--primary-color);
  padding: 1rem;
  border-radius: 4px;
  font-size: 0.9rem;
}

.release-info-compact .info-item {
  padding: 0.3rem 0;
  line-height: 1.4;
}

.release-info-compact .info-item strong {
  color: var(--primary-color);
  min-width: 100px;
  display: inline-block;
}

.release-info-table {
  width: 100%;
}

.variant-content {
  line-height: 1.6;
}

.variant-content h2 {
  font-size: 1.8rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--text-color);
  border-bottom: 2px solid #eee;
  padding-bottom: 0.5rem;
}

.disc-images,
.manual-images {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1rem 0;
}

.disc-images img {
  max-width: 300px;
  flex: 0 0 auto;
}

.manual-images img {
  max-width: 100%;
  display: block;
}

/* ============================================
   CASE TYPE PAGES
   ============================================ */

.case-type-page {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 2rem;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.case-type-header {
  margin-bottom: 2rem;
}

.case-type-header h1 {
  margin-bottom: 0.5rem;
}

.dimensions {
  color: var(--text-light);
  font-size: 1rem;
}

.case-type-content {
  margin-bottom: 3rem;
  line-height: 1.6;
}

.case-type-content img {
  max-width: 800px;
  height: auto;
  margin: 1rem 0;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.games-section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid var(--border-color);
}

/* ============================================
   ALPHABET NAVIGATION (Used on multiple pages)
   ============================================ */

.alphabet-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.letter-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  background: #f0f0f0;
  border: 2px solid #d0d0d0;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.letter-box:hover {
  background: #e0e0f0;
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.letter-box .letter {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--text-color);
  line-height: 1;
}

.letter-box .count {
  font-size: 0.875rem;
  color: var(--text-light);
  margin-top: 0.25rem;
}

.total-count {
  margin-top: 1rem;
  color: var(--text-light);
  font-weight: 500;
}

/* ============================================
   INDEX PAGES (Games, Publishers, etc.)
   ============================================ */

.games-index-page,
.alphabetical-index-page,
.list-page {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  max-width: var(--max-width-wide);
  margin: 0 auto;
}

.games-index-content h1,
.alphabetical-index-content h1,
.list-content h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.list-content ul {
  list-style: none;
  padding-left: 0;
  column-count: 3;
  column-gap: 2rem;
}

.list-content li {
  padding: 0.3rem 0;
  break-inside: avoid;
}

.list-content li:before {
  content: "▸ ";
  color: var(--primary-color);
  font-weight: bold;
}

/* ============================================
   RELEASE TYPES
   ============================================ */

.container {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 2rem;
}

.page-header {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--border-color);
}

.page-header h1 {
  margin: 0 0 0.5rem 0;
  font-size: 2.5rem;
  color: #1a1a1a;
}

.page-header .subtitle {
  margin: 0;
  font-size: 1.1rem;
  color: var(--text-light);
}

/* Release Type Banner */
.banner-container {
  width: 100%;
  height: 48px;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  margin-top: 1.5rem;
}

.banner-repeat {
  background-repeat: repeat-x;
  background-size: auto 100%;
  background-position: left center;
}

.banner-stretch {
  display: flex;
  align-items: center;
  justify-content: center;
}

.banner-stretch .banner-image {
  max-height: 100%;
  width: auto;
  object-fit: contain;
  z-index: 1;
  position: relative;
}

/* Release Types Grid */
.release-types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.release-type-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 2px solid var(--border-color);
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.release-type-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.15);
  border-color: #2196f3;
}

.release-type-card .banner-display {
  width: 100%;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  overflow: hidden;
}

.release-type-card .banner-display img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ============================================
   BLOG PAGES
   ============================================ */

.blog-list {
  max-width: var(--max-width-narrow);
  margin: 0 auto;
  padding: 2rem;
}

.blog-post {
  max-width: var(--max-width-narrow);
  margin: 0 auto;
  padding: 2rem;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.post-header h1 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.tags {
  margin: 1rem 0;
}

.tag {
  display: inline-block;
  background: #f0f0f0;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.85rem;
  margin-right: 0.5rem;
  color: var(--text-light);
}

.post-content {
  line-height: 1.8;
  margin: 2rem 0;
}

.post-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid #eee;
}

/* ============================================
   GENERAL PAGE CONTENT
   ============================================ */

.page-content {
  background: white;
  padding: 3rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  max-width: var(--max-width-wide);
  margin: 0 auto;
}

.page-content h1 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: var(--primary-color);
  border-bottom: 3px solid var(--primary-color);
  padding-bottom: 1rem;
}

.page-content h2 {
  font-size: 1.8rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--text-color);
}

.page-content h3 {
  font-size: 1.4rem;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: #555;
}

.page-content p {
  margin-bottom: 1rem;
  line-height: 1.8;
  color: #555;
}

.page-content img {
  max-width: 100%;
  height: auto;
  margin: 1rem 0;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* ============================================
   IMAGE CAPTIONS
   ============================================ */

.image-with-caption {
  margin: 2rem 0;
  max-width: 100%;
}

.image-with-caption img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

.image-with-caption figcaption {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-light);
  font-style: italic;
  text-align: center;
  padding: 0 1rem;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1024px) {
  .homepage {
    grid-template-columns: 1fr;
  }

  .sidebar {
    order: -1;
  }

  .stats {
    grid-template-columns: repeat(4, 1fr);
  }

  .stats h3 {
    display: none;
  }
}

@media (max-width: 768px) {
  .site-header {
    padding: 1rem;
  }

  .main-nav {
    gap: 0.5rem;
    flex-wrap: wrap;
  }

  .logo-img {
    height: 60px;
  }

  .nav-menu {
    gap: 1rem;
  }

  #search {
    width: 100%;
    margin-top: 1rem;
    margin-left: 0;
  }

  .site-main {
    padding: 0 1rem;
  }

  .homepage {
    padding: 1rem;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .game-header,
  .variant-header {
    grid-template-columns: 1fr;
  }

  .game-images,
  .variant-images {
    grid-template-columns: 1fr;
  }

  .variants-table {
    font-size: 0.9rem;
    display: block;
    overflow-x: auto;
  }

  .list-content ul {
    column-count: 1;
  }

  .alphabet-nav {
    gap: 0.4rem;
  }

  .letter-box {
    width: 50px;
    height: 50px;
  }

  .letter-box .letter {
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .logo-img {
    height: 40px;
  }

  .nav-menu li a {
    font-size: 0.9rem;
  }

  .game-info h1 {
    font-size: 1.5rem;
  }

  .release-types-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================
   PAGEFIND CUSTOMIZATION
   ============================================ */

:root {
  --pagefind-ui-scale: 0.9;
  --pagefind-ui-primary: #0066cc;
  --pagefind-ui-text: #333;
  --pagefind-ui-background: #fff;
  --pagefind-ui-border: #ddd;
  --pagefind-ui-tag: #f0f0f0;
}

.pagefind-ui__results {
  max-height: 60vh;
  overflow-y: auto;
}

/* ============================================
/* ============================================
   PUBLISHER/DEVELOPER ENTITY PAGES
   ============================================ */

.entity-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--border-color);
}

.entity-logo {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.entity-title h1 {
  margin: 0;
  font-size: 2rem;
}

.entity-tagline {
  margin: 0.5rem 0 0 0;
  color: var(--text-light);
  font-style: italic;
}

.inline-logo {
  height: 24px;
  width: auto;
  vertical-align: middle;
  object-fit: contain;
}

@media (max-width: 768px) {
  .entity-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

   DARK MODE SUPPORT
   ============================================ */

@media (prefers-color-scheme: dark) {
  .image-with-caption figcaption {
    color: #aaa;
  }
}

/* Base ad container styling */
.ad-container {
  margin: 2rem 0;
  padding: 1rem;
  text-align: center;
  background: #f5f5f5;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
}

/* Horizontal ads (between content) */
.ad-horizontal {
  max-width: 100%;
  min-height: 90px;
}

/* Sidebar ads */
.ad-sidebar {
  position: sticky;
  top: 20px;
  margin: 1rem 0;
  min-height: 250px;
}

/* In-feed ads (within game listings) */
.ad-infeed {
  grid-column: 1 / -1; /* If using CSS Grid for game listings */
  margin: 1rem 0;
  min-height: 100px;
}

/* Optional: Add a subtle "Advertisement" label */
.ad-container::before {
  content: "Advertisement";
  display: block;
  font-size: 0.75rem;
  color: #999;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .ad-sidebar {
    position: static;
    margin: 1.5rem 0;
  }

  .ad-container {
    margin: 1.5rem 0;
  }
}

/* Dark mode support (if your site has it) */
@media (prefers-color-scheme: dark) {
  .ad-container {
    background: #2a2a2a;
    border-color: #404040;
  }

  .ad-container::before {
    color: #666;
  }
}
/* ============================================
   FOOTER STYLES (Page Edit Dates)
   ============================================ */

.variant-footer,
.game-footer {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.last-updated {
  font-size: 0.85rem;
  color: var(--text-light);
  text-align: center;
  font-style: italic;
  margin: 0;
}

/* ============================================
   DATA PROCESSING NOTICE BOXES
   ============================================ */

.data-processing-notice {
  padding: 0.1rem;
  margin: 0.1rem 0;
}

.notice-box {
  background: #f8f9fa;
  border-left: 4px solid #0066cc;
  padding: 1rem;
  border-radius: 4px;
}

.notice-box h3 {
  margin-top: 0;
  color: #0066cc;
}

.notice-box p {
  margin: 0.75rem 0;
  line-height: 1.6;
}

.notice-box p:last-child {
  margin-bottom: 0;
}

.processing-note {
  margin-top: 1rem;
  padding: 0.75rem;
  background: #fff3cd;
  border-radius: 4px;
  text-align: center;
}