/* ================================================================
   GameTracker v2.0 — Extended CSS
   Auth, Profile, Admin, My Servers, Server Page, Settings
   ================================================================ */

/* ── AUTH PAGES ─────────────────────────────────────────────── */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
  position: relative;
  overflow: hidden;
}
.auth-container { width: 100%; max-width: 440px; position: relative; z-index: 1; }
.auth-deco { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
.auth-glow {
  position: absolute; top: 20%; left: 50%; transform: translateX(-50%);
  width: 600px; height: 400px;
  background: radial-gradient(ellipse, rgba(255,87,34,0.1) 0%, transparent 70%);
}
.auth-grid {
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(-45deg, rgba(255,87,34,0.015) 0px, rgba(255,87,34,0.015) 1px, transparent 1px, transparent 40px);
}

.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
  box-shadow: var(--shadow-lg), 0 0 60px rgba(255,87,34,0.06);
}

.auth-logo {
  text-align: center;
  margin-bottom: 28px;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.auth-logo a { text-decoration: none; }

.auth-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  color: var(--text-1);
  text-align: center;
  margin: 0 0 6px;
}
.auth-sub { color: var(--text-3); text-align: center; font-size: 14px; margin: 0 0 28px; }

.auth-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 24px 0; color: var(--text-3);
  font-size: 12px; text-transform: uppercase; letter-spacing: 1px;
}
.auth-divider::before, .auth-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border-mid);
}

.auth-footer { text-align: center; margin-top: 20px; font-size: 14px; color: var(--text-3); }
.auth-footer a { color: var(--fire); font-weight: 600; }
.auth-footer a:hover { color: #fff; }

/* Checkbox */
.checkbox-wrap { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.checkbox-wrap input[type="checkbox"] {
  width: 16px; height: 16px; margin-top: 2px; flex-shrink: 0;
  accent-color: var(--fire); cursor: pointer;
}
.checkbox-wrap span { font-size: 13px; color: var(--text-2); line-height: 1.5; }

/* ── ADMIN PANEL ─────────────────────────────────────────────── */
.admin-layout { display: flex; min-height: 100vh; padding-top: 62px; }

.admin-sidebar {
  width: 240px;
  flex-shrink: 0;
  background: var(--bg-dark);
  border-right: 1px solid var(--border);
  padding: 24px 12px;
  position: fixed;
  top: 62px;
  bottom: 0;
  overflow-y: auto;
  z-index: 100;
}
.admin-content { flex: 1; padding: 32px 36px; margin-left: 240px; max-width: calc(100vw - 240px); }

.admin-nav-title {
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--text-3); padding: 0 8px; margin: 18px 0 6px;
}
.admin-nav-title:first-child { margin-top: 0; }

.admin-nav-link {
  display: flex; align-items: center; gap: 9px;
  padding: 8px 10px; border-radius: 7px; margin-bottom: 2px;
  font-size: 0.84rem; font-weight: 500; color: var(--text-2);
  transition: all var(--trans);
}
.admin-nav-link:hover { background: var(--bg-hover); color: var(--text-1); }
.admin-nav-link.active { background: rgba(255,87,34,0.12); color: var(--fire); font-weight: 600; }

.admin-page-title {
  font-family: var(--font-display);
  font-size: 1.7rem; font-weight: 800; color: var(--text-1);
  margin-bottom: 4px; letter-spacing: -0.01em;
}
.admin-page-sub { font-size: 0.875rem; color: var(--text-3); margin-bottom: 28px; }

/* Admin stat cards */
.admin-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 28px; }
.admin-stat {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 18px;
  border-top: 2px solid var(--fire);
}
.admin-stat-val { font-family: var(--font-display); font-size: 2rem; font-weight: 800; color: var(--text-1); letter-spacing: -0.03em; }
.admin-stat-key { font-size: 0.76rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-3); margin-top: 4px; }

/* ── MY SERVERS / PROFILE ────────────────────────────────────── */
.page-header { margin-bottom: 28px; }
.page-title { font-family: var(--font-display); font-size: 1.8rem; font-weight: 800; color: var(--text-1); letter-spacing: -0.01em; }
.page-sub { font-size: 0.875rem; color: var(--text-3); margin-top: 4px; }

.profile-layout { display: grid; grid-template-columns: 280px 1fr; gap: 24px; }
.profile-sidebar .card { position: sticky; top: 80px; }
.profile-avatar {
  width: 80px; height: 80px; border-radius: 14px;
  background: linear-gradient(135deg, var(--fire), var(--gold));
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; font-weight: 700; color: #fff;
  margin: 0 auto 16px; overflow: hidden;
}
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-name { font-family: var(--font-display); font-size: 1.25rem; font-weight: 800; color: var(--text-1); text-align: center; margin-bottom: 4px; }
.profile-meta { font-size: 0.8rem; color: var(--text-3); text-align: center; margin-bottom: 18px; }

.profile-stat-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border-mid); font-size: 0.84rem; }
.profile-stat-row:last-child { border-bottom: none; }
.profile-stat-label { color: var(--text-3); }
.profile-stat-val { font-weight: 600; color: var(--text-1); }

/* ── SERVER DETAIL PAGE ──────────────────────────────────────── */
.server-detail-header {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px;
  margin-bottom: 24px;
  border-left: 4px solid var(--game-color, var(--fire));
}
.server-detail-title { font-family: var(--font-display); font-size: 2rem; font-weight: 800; color: var(--text-1); margin-bottom: 8px; }
.server-detail-grid { display: grid; grid-template-columns: 1fr 340px; gap: 24px; }

.chart-container { position: relative; height: 200px; }

.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 12px;
}
.review-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.review-author { font-weight: 600; font-size: 0.875rem; color: var(--text-1); }
.review-rating { color: var(--gold); font-size: 0.85rem; }
.review-text { font-size: 0.84rem; color: var(--text-2); line-height: 1.6; }
.review-date { font-size: 0.75rem; color: var(--text-3); margin-top: 6px; }

.stars-input { display: flex; gap: 4px; }
.star-btn {
  background: none; border: none; font-size: 1.3rem; cursor: pointer;
  color: var(--text-3); transition: color 0.1s ease;
  line-height: 1;
}
.star-btn:hover, .star-btn.active { color: var(--gold); }

/* ── BANNER ──────────────────────────────────────────────────── */
.server-banner {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card2);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}

/* ── ADD SERVER PAGE ─────────────────────────────────────────── */
.add-server-layout { max-width: 800px; margin: 0 auto; padding: 32px 0 60px; }
.steps-header {
  display: flex; gap: 0; margin-bottom: 36px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden;
}
.step-item {
  flex: 1; padding: 14px 16px; text-align: center;
  font-size: 0.8rem; font-weight: 600; color: var(--text-3);
  border-right: 1px solid var(--border);
  transition: all var(--trans);
}
.step-item:last-child { border-right: none; }
.step-item.active { color: var(--fire); background: rgba(255,87,34,0.08); }
.step-item.done   { color: var(--lime); }
.step-num { display: block; font-family: var(--font-display); font-size: 1.3rem; font-weight: 800; margin-bottom: 2px; }

/* ── GAME SELECTOR ───────────────────────────────────────────── */
.game-selector-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; margin-bottom: 24px; }
.game-selector-item {
  background: var(--bg-card); border: 2px solid var(--border-mid); border-radius: var(--radius-lg);
  padding: 14px 10px; text-align: center; cursor: pointer;
  transition: all var(--trans);
}
.game-selector-item:hover { border-color: var(--border-h); }
.game-selector-item.selected { border-color: var(--fire); background: rgba(255,87,34,0.08); }
.game-selector-item input[type="radio"] { display: none; }
.game-selector-name { font-size: 0.82rem; font-weight: 600; color: var(--text-2); margin-top: 6px; }

/* ── GENERIC HELPERS ─────────────────────────────────────────── */
.section-gap { margin-bottom: 28px; }
.text-center { text-align: center; }
.text-right  { text-align: right; }
.mt-auto { margin-top: auto; }
.w-full { width: 100%; }
.hidden { display: none; }

.empty-state {
  text-align: center; padding: 56px 24px;
  color: var(--text-3);
}
.empty-state .icon { font-size: 3.5rem; margin-bottom: 14px; }
.empty-state p { font-size: 0.9rem; margin-bottom: 16px; }

/* Settings tabs */
.settings-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border-mid); margin-bottom: 24px; }
.settings-tab {
  padding: 8px 18px; font-size: 0.85rem; font-weight: 600;
  color: var(--text-3); border-bottom: 2px solid transparent;
  margin-bottom: -1px; transition: all var(--trans); cursor: pointer;
}
.settings-tab:hover { color: var(--text-1); }
.settings-tab.active { color: var(--fire); border-bottom-color: var(--fire); }

/* Alerts inline */
.alert { padding: 12px 16px; border-radius: var(--radius); font-size: 0.875rem; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.alert-success { background: rgba(0,230,118,0.08); border: 1px solid rgba(0,230,118,0.2); color: var(--lime); }
.alert-error   { background: rgba(244,67,54,0.08); border: 1px solid rgba(244,67,54,0.2); color: var(--red); }
.alert-warning { background: rgba(255,179,0,0.08); border: 1px solid rgba(255,179,0,0.2); color: var(--gold); }
.alert-info    { background: rgba(68,138,255,0.08); border: 1px solid rgba(68,138,255,0.2); color: var(--blue); }

/* Responsive */
@media (max-width: 900px) {
  .profile-layout { grid-template-columns: 1fr; }
  .server-detail-grid { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; }
  .admin-content { margin-left: 0; max-width: 100%; padding: 20px 16px; }
}
