/* FREEGAME RADAR - WHITE STOREFRONT */
html, body {
  background: #fff !important;
  color: #172033 !important;
}
body {
  background: #fff !important;
}
.top-panel, .site-header {
  background: #fff !important;
  color: #172033 !important;
  border: 1px solid #e8edf4;
  box-shadow: 0 3px 14px rgba(20,40,70,.05);
}
.brand, .brand-name { color: #172033 !important; }
.main-nav { color: #526078; }
.language-select {
  color: #172033;
  background: #f7f9fc;
  border: 1px solid #e2e8f0;
}
.fgr-carousel {
  border: 1px solid #e6eaf0;
  box-shadow: 0 5px 18px rgba(25,45,75,.08);
}
.games-section {
  width: min(1240px, calc(100% - 28px));
  margin: 0 auto 35px;
  color: #172033;
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  column-gap: 10px;
  align-items: center;
}
.search-wrap {
  grid-column: 1;
  width: 100%;
  min-width: 0;
  margin: 0;
}
.search-wrap input {
  width: 100%;
  min-height: 44px;
  color: #172033;
  background: #f7f9fc;
  border: 1px solid #e3e8f0;
  border-radius: 11px;
  box-shadow: none;
}
.view-switch {
  grid-column: 2;
  display: flex;
  gap: 4px;
  padding: 4px;
  background: #f1f4f8;
  border: 1px solid #e6eaf0;
  border-radius: 11px;
}

/* CATEGORY FILTERS */
.category-strip {
  grid-column: 1 / -1;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 14px 0;
  scrollbar-width: none;
}
.category-button {
  flex: 0 0 auto;
  padding: 9px 17px;
  color: #526078;
  background: #f4f6fa;
  border: 1px solid #e6eaf0;
  border-radius: 22px;
  font-weight: 700;
}
.category-button.is-active {
  color: #fff;
  background: #2563eb;
  border-color: #2563eb;
}

/* GAME SECTIONS */
.game-group-title {
  grid-column: 1 / -1;
  color: #172033;
}
.game-list {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.game-card {
  min-width: 0;
  overflow: hidden;
  color: #172033;
  background: #fff;
  border: 1px solid #e8edf4;
  border-radius: 13px;
  box-shadow: 0 3px 12px rgba(20,40,70,.06);
}
.game-art img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.game-info { color: #172033; }
.game-card p, .game-meta { color: #64748b; }

/* GRID AND LIST MODES */
.view-button {
  width: 38px;
  height: 36px;
  color: #526078;
  background: transparent;
  border: 0;
  border-radius: 8px;
}
.view-button.is-active {
  color: #fff;
  background: #2563eb;
}
.game-list.list-view {
  grid-template-columns: 1fr;
}
.game-list.list-view .game-card {
  display: flex;
  align-items: center;
  gap: 12px;
}
.game-list.list-view .game-art {
  flex: 0 0 105px;
}
.game-list.list-view .game-art img {
  aspect-ratio: 1 / 1;
}
.game-count {
  display: inline-flex;
  align-items: center;
  margin-inline-start: 8px;
  padding: 4px 9px;
  color: #2563eb;
  background: #eff6ff;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
}

/* FOOTER AND LEGAL PAGES */
footer, .site-footer {
  color: #526078;
  background: #f8fafc;
  border-top: 1px solid #e8edf4;
}
.legal-page, .legal-content {
  color: #172033;
  background: #fff;
}

/* ARABIC DIRECTION */
html[dir="rtl"] .games-section {
  direction: rtl;
}
html[dir="rtl"] .game-list {
  direction: rtl;
}

/* MOBILE */
@media (max-width: 480px) {
  .games-section {
    width: calc(100% - 20px);
  }
  .game-list {
    gap: 9px;
  }
  .game-card {
    border-radius: 10px;
  }
}
