/* =========================================================
   AllYonoGames - Custom Theme
   Vibrant gaming palette: deep purple + gold/orange accent
========================================================= */
:root {
  --primary: #6d28d9;      /* deep purple */
  --primary-dark: #4c1d95;
  --accent: #f59e0b;       /* gold/orange */
  --accent-dark: #d97706;
  --success: #16a34a;
  --dark-bg: #0f0a1f;
  --card-bg: #ffffff;
  --text-muted: #6b7280;
}

body {
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: #f4f2fb;
  color: #1f2937;
}

a { text-decoration: none; }

/* ---------- Header ---------- */
.site-header {
  background: linear-gradient(90deg, var(--primary-dark), var(--primary));
  box-shadow: 0 2px 12px rgba(0,0,0,.2);
}
.site-header .navbar-brand { color: #fff; }
.site-header .nav-link {
  color: #e5e0f7 !important;
  font-weight: 500;
  padding: .5rem 1rem !important;
}
.site-header .nav-link:hover { color: var(--accent) !important; }

/* ---------- Hero ---------- */
.hero-section {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary) 60%, #8b5cf6);
  color: #fff;
  padding: 60px 0 70px;
  text-align: center;
}
.hero-section h1 { font-weight: 800; font-size: 2.4rem; }
.hero-section p { color: #e5e0f7; max-width: 600px; margin: 0 auto; }

/* ---------- Game Cards (App Store style grid) ---------- */
.game-card {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 4px 16px rgba(31,15,66,.08);
  transition: transform .2s ease, box-shadow .2s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 26px rgba(31,15,66,.16);
}
.game-card .logo-wrap {
  width: 72px; height: 72px;
  border-radius: 18px;
  overflow: hidden;
  flex-shrink: 0;
  background: #f0edfb;
  display: flex; align-items: center; justify-content: center;
}
.game-card .logo-wrap img { width: 100%; height: 100%; object-fit: cover; }
.game-card .game-name {
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 2px;
  color: #1f2937;
}
.game-card .rating-badge {
  color: var(--accent-dark);
  font-weight: 600;
  font-size: .9rem;
}
.game-card .meta-line { font-size: .8rem; color: var(--text-muted); }

.btn-download {
  background: linear-gradient(90deg, var(--success), #22c55e);
  color: #fff;
  font-weight: 700;
  border: none;
  border-radius: 10px;
  padding: 10px 18px;
  transition: opacity .2s ease;
}
.btn-download:hover { opacity: .9; color: #fff; }

.btn-download-lg {
  background: linear-gradient(90deg, var(--accent-dark), var(--accent));
  color: #fff;
  font-weight: 800;
  font-size: 1.15rem;
  border: none;
  border-radius: 14px;
  padding: 16px 32px;
  box-shadow: 0 6px 18px rgba(245,158,11,.35);
}
.btn-download-lg:hover { color: #fff; opacity: .92; }

/* ---------- Search bar ---------- */
.search-wrap {
  max-width: 560px;
  margin: 0 auto;
}
.search-wrap .form-control {
  border-radius: 50px 0 0 50px;
  padding: 12px 20px;
  border: none;
}
.search-wrap .btn {
  border-radius: 0 50px 50px 0;
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 0 22px;
  font-weight: 600;
}

/* ---------- Details Page ---------- */
.details-top {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff;
  border-radius: 20px;
  padding: 36px;
}
.details-top .logo-wrap {
  width: 110px; height: 110px;
  border-radius: 26px;
  overflow: hidden;
  background: #fff;
}
.details-top .logo-wrap img { width: 100%; height: 100%; object-fit: cover; }
.details-top .stat-pill {
  background: rgba(255,255,255,.12);
  border-radius: 10px;
  padding: 10px 14px;
  text-align: center;
}
.details-top .stat-pill .val { font-weight: 800; font-size: 1.1rem; }
.details-top .stat-pill .lbl { font-size: .75rem; color: #d8d0f7; }

.info-block {
  background: #fff;
  border-radius: 16px;
  padding: 26px;
  box-shadow: 0 4px 16px rgba(31,15,66,.06);
  margin-bottom: 24px;
}
.info-block h3 {
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 14px;
  color: var(--primary-dark);
  border-left: 4px solid var(--accent);
  padding-left: 10px;
}
.deposit-box, .withdrawal-box {
  border-radius: 14px;
  padding: 20px;
  color: #fff;
  height: 100%;
}
.deposit-box { background: linear-gradient(135deg,#16a34a,#22c55e); }
.withdrawal-box { background: linear-gradient(135deg,#2563eb,#3b82f6); }
.deposit-box .amount, .withdrawal-box .amount { font-size: 1.8rem; font-weight: 800; }

.faq-item .accordion-button { font-weight: 600; }
.faq-item .accordion-button:not(.collapsed) {
  background: #f3effc;
  color: var(--primary-dark);
}

/* ---------- Footer ---------- */
.site-footer { background: var(--dark-bg); }
.site-footer a { color: #b9aee0; }
.site-footer a:hover { color: var(--accent); }

/* ---------- Admin ---------- */
.admin-wrap { max-width: 960px; margin: 40px auto; }
.admin-card {
  background: #fff;
  border-radius: 14px;
  padding: 26px;
  box-shadow: 0 4px 16px rgba(31,15,66,.08);
}
.table-games img { width: 42px; height: 42px; border-radius: 10px; object-fit: cover; }

/* ---------- Responsive tweaks ---------- */
@media (max-width: 576px) {
  .hero-section h1 { font-size: 1.7rem; }
  .details-top { padding: 22px; text-align: center; }
  .details-top .logo-wrap { margin: 0 auto 14px; }
}
