/* === EXPLORER PAGE LAYOUT === */
.explorer-page {
  min-height: 100vh;
  padding-top: 60px; /* navbar offset */
}

/* === SECTION TABS === */
.section-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.section-tab {
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--fg-muted);
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
  cursor: pointer;
}

.section-tab:hover { color: var(--fg); }

.section-tab.active {
  color: var(--fg);
  border-bottom-color: var(--accent);
}

/* === HEADER === */
.explorer-header {
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  padding: 40px 32px 0;
}

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

.explorer-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 28px;
}

.explorer-title-row h1 {
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}

.explorer-title-row h1 .accent { color: var(--accent); }

.page-sub {
  font-size: 15px;
  color: var(--fg-muted);
  margin-bottom: 0;
}

.page-sub strong { color: var(--fg); }

.live-badge {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--green);
  background: rgba(0, 232, 122, 0.08);
  border: 1px solid rgba(0, 232, 122, 0.2);
  border-radius: 6px;
  padding: 8px 14px;
  font-weight: 500;
  white-space: nowrap;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse-dot 1.5s ease-in-out infinite;
}

/* === SEARCH & FILTERS === */
.search-row {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.search-box {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0 14px;
  transition: border-color 0.2s;
}

.search-box:focus-within {
  border-color: rgba(255, 77, 0, 0.4);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.search-box .search-icon { color: var(--fg-muted); flex-shrink: 0; }

.search-box input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--fg);
  font-size: 14px;
  font-family: 'DM Sans', sans-serif;
  padding: 11px 0;
}

.search-box input::placeholder { color: var(--fg-dim); }

.clear-btn {
  background: none;
  border: none;
  color: var(--fg-dim);
  font-size: 18px;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  transition: color 0.2s;
}

.clear-btn:hover { color: var(--fg-muted); }

.filter-controls select {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--fg);
  font-size: 13px;
  font-family: 'DM Sans', sans-serif;
  padding: 10px 32px 10px 14px;
  cursor: pointer;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 16 16'%3E%3Cpath fill='%238A8A8A' d='M4 6l4 4 4-4H4z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}

.filter-controls select:focus {
  border-color: rgba(255, 77, 0, 0.4);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

/* === GENRE FILTERS === */
.genre-filters {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 16px;
  scrollbar-width: none;
}

.genre-filters::-webkit-scrollbar { display: none; }

.genre-btn {
  flex-shrink: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--fg-muted);
  font-size: 12px;
  font-family: 'DM Sans', sans-serif;
  padding: 5px 14px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.genre-btn:hover { border-color: rgba(255, 77, 0, 0.3); color: var(--fg); }

.genre-btn.active {
  background: var(--accent-dim);
  border-color: rgba(255, 77, 0, 0.4);
  color: var(--accent);
  font-weight: 600;
}

/* === STATS BAR === */
.stats-bar {
  background: var(--bg-3);
  border-bottom: 1px solid var(--border);
  padding: 12px 32px;
}

.stats-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0;
}

.stat-item {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.stat-val {
  font-family: 'Outfit', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: var(--accent);
}

.stat-key {
  font-size: 12px;
  color: var(--fg-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.stat-divider {
  width: 1px;
  height: 20px;
  background: var(--border);
  margin: 0 24px;
}

/* === LOADING === */
.loading-state {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 40px 32px;
  color: var(--fg-muted);
  font-size: 14px;
}

.loading-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* === GAMES GRID === */
.games-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 32px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  transition: opacity 0.2s;
}

.game-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.15s, box-shadow 0.15s;
  cursor: default;
}

.game-card:hover {
  border-color: rgba(255, 77, 0, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.game-card-inner {
  display: flex;
  gap: 12px;
  padding: 14px;
}

.game-thumb-wrap {
  position: relative;
  width: 80px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-3);
}

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

.game-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fg-dim);
}

.ccu-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  font-size: 9px;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
  border-radius: 4px;
  padding: 2px 5px;
}

.ccu-badge.hot { background: rgba(255,77,0,0.85); color: #fff; }
.ccu-badge.warm { background: rgba(255,184,0,0.85); color: #1a1a1a; }
.ccu-badge.cool { background: rgba(77,157,255,0.8); color: #fff; }

.game-info {
  flex: 1;
  min-width: 0;
}

.game-genre-badge {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(255,77,0,0.12);
  border-radius: 4px;
  padding: 2px 7px;
  display: inline-block;
  margin-bottom: 5px;
}

.game-name {
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--fg);
  line-height: 1.3;
  margin-bottom: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.game-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.creator-name {
  font-size: 11px;
  color: var(--fg-dim);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.game-stats {
  display: flex;
  gap: 10px;
}

.game-stat {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  color: var(--fg-dim);
}

/* === CARD FOOTER === */
.game-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-top: 1px solid var(--border);
  background: var(--bg-2);
}

.ccu-live {
  display: flex;
  align-items: baseline;
  gap: 5px;
}

.ccu-live .ccu-num {
  font-family: 'Outfit', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: var(--accent);
}

.ccu-live .ccu-label {
  font-size: 11px;
  color: var(--fg-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.view-btn {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(255, 77, 0, 0.15);
  border-radius: 6px;
  padding: 5px 12px;
  transition: all 0.2s;
}

.view-btn:hover {
  background: rgba(255, 77, 0, 0.2);
  border-color: rgba(255, 77, 0, 0.4);
}

/* === DELTA BADGES === */
.delta-up { color: var(--green); font-size: 11px; font-weight: 600; }
.delta-down { color: #FF5F5F; font-size: 11px; font-weight: 600; }

/* === PAGINATION === */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 32px;
}

.page-btn {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--fg-muted);
  font-size: 13px;
  font-family: 'DM Sans', sans-serif;
  padding: 8px 18px;
  cursor: pointer;
  transition: all 0.2s;
}

.page-btn:hover:not(:disabled) {
  border-color: rgba(255, 77, 0, 0.3);
  color: var(--fg);
}

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

.page-info {
  font-size: 13px;
  color: var(--fg-muted);
}

/* === EMPTY STATE === */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 32px;
  color: var(--fg-muted);
}

.empty-state p {
  font-size: 15px;
  margin-bottom: 8px;
}

.empty-state small {
  font-size: 13px;
  color: var(--fg-dim);
}

/* === EYEBROW === */
.eyebrow-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(255,77,0,0.2);
  border-radius: 4px;
  padding: 4px 10px;
  margin-bottom: 12px;
  width: fit-content;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .explorer-header { padding: 24px 20px 0; }
  .explorer-title-row { flex-direction: column; gap: 12px; }
  .search-row { flex-direction: column; }
  .games-grid { padding: 16px 20px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
  .stats-bar { padding: 10px 20px; }
  .stat-divider { margin: 0 16px; }
  .pagination { padding: 24px 20px; }
}

@media (max-width: 480px) {
  .games-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .game-thumb-wrap { width: 64px; height: 48px; }
  .game-name { font-size: 13px; }
}