/* ===============================================
   GameZone – Bold Arcade CSS
   Font: Bungee (headings) + Nunito (body)
   Theme: Deep dark navy + electric yellow + coral
   =============================================== */

:root {
  --bg:          #0d0f1a;
  --bg2:         #131626;
  --bg3:         #1a1e35;
  --card:        #1e2238;
  --card-hover:  #252a46;
  --border:      #2e3455;
  --yellow:      #f5c518;
  --yellow-dim:  #c9a010;
  --coral:       #ff5252;
  --teal:        #00e5cc;
  --text:        #e8eaf6;
  --text-muted:  #7b82aa;
  --text-dim:    #555d85;
  --radius:      12px;
  --radius-lg:   18px;
  --shadow:      0 4px 24px rgba(0,0,0,.55);
  --shadow-card: 0 2px 12px rgba(0,0,0,.4);
  --transition:  .2s cubic-bezier(.4,0,.2,1);
  --header-h:    64px;
  --font-head:   'Bungee', cursive;
  --font-body:   'Nunito', sans-serif;
  --otp-success: #00e5cc;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* ===============================================
   HEADER
   =============================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(13,15,26,.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.logo-icon { font-size: 24px; }
.logo-text {
  font-family: var(--font-head);
  font-size: 22px;
  color: var(--yellow);
  letter-spacing: .5px;
}
.main-nav {
  display: flex;
  gap: 4px;
  margin-left: 8px;
}
.nav-link {
  padding: 6px 14px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  color: var(--text-muted);
  transition: color var(--transition), background var(--transition);
}
.nav-link:hover, .nav-link.active {
  color: var(--text);
  background: var(--bg3);
}
.nav-link.active { color: var(--yellow); }
.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
.user-badge {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.badge-pro {
  background: var(--yellow);
  color: #000;
  font-size: 10px;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 1px;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  border: none;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  text-align: center;
  justify-content: center;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-accent {
  background: var(--yellow);
  color: #000;
  box-shadow: 0 0 0 0 var(--yellow);
}
.btn-accent:hover {
  background: #ffd740;
  box-shadow: 0 4px 20px rgba(245,197,24,.4);
}
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--yellow);
  color: var(--yellow);
}
.btn-ghost {
  background: transparent;
  color: var(--text-muted);
}
.btn-ghost:hover { color: var(--text); background: var(--bg3); }
.btn-coral { background: var(--coral); color: #fff; }
.btn-coral:hover { background: #ff6b6b; box-shadow: 0 4px 20px rgba(255,82,82,.4); }
.btn-teal { background: var(--teal); color: #000; }
.btn-teal:hover { box-shadow: 0 4px 20px rgba(0,229,204,.4); }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-lg { padding: 14px 28px; font-size: 16px; border-radius: 12px; }
.btn-full { width: 100%; }

/* ---- HAMBURGER ---- */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- MOBILE NAV ---- */
.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 12px 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}
.mobile-nav.open { max-height: 320px; }
.mobile-nav a {
  padding: 12px 24px;
  font-weight: 700;
  color: var(--text-muted);
  transition: color var(--transition), background var(--transition);
}
.mobile-nav a:hover { color: var(--yellow); background: var(--bg3); }

/* ===============================================
   LAYOUT CONTAINERS
   =============================================== */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}
.page-content {
  padding: 40px 20px;
  max-width: 1280px;
  margin: 0 auto;
}

/* ===============================================
   HERO
   =============================================== */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  padding: 72px 20px 64px;
  text-align: center;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% 100%, rgba(245,197,24,.12), transparent),
    radial-gradient(ellipse 40% 60% at 80% 20%, rgba(0,229,204,.08), transparent),
    radial-gradient(ellipse 40% 60% at 20% 80%, rgba(255,82,82,.06), transparent);
  pointer-events: none;
}
.hero-inner { position: relative; max-width: 700px; margin: 0 auto; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(245,197,24,.12);
  border: 1px solid rgba(245,197,24,.3);
  color: var(--yellow);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(36px, 7vw, 64px);
  line-height: 1.05;
  color: var(--text);
  margin-bottom: 16px;
}
.hero h1 span { color: var(--yellow); }
.hero p {
  font-size: 17px;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---- LOCK BANNER (for non-subscribers on game page) ---- */
.lock-banner {
  background: linear-gradient(135deg, var(--bg3), var(--card));
  border: 2px solid var(--yellow);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: center;
  margin: 32px 0;
}
.lock-icon { font-size: 48px; margin-bottom: 12px; }
.lock-banner h2 { font-family: var(--font-head); font-size: 26px; margin-bottom: 8px; }
.lock-banner p { color: var(--text-muted); margin-bottom: 24px; }
.lock-banner .cta-group { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ===============================================
   SECTION TITLES
   =============================================== */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 12px;
}
.section-title {
  font-family: var(--font-head);
  font-size: 22px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--yellow);
  white-space: nowrap;
}
.section-link:hover { text-decoration: underline; }

/* ===============================================
   GAME GRID & CARDS
   =============================================== */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

.game-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  position: relative;
  display: block;
}
.game-card:hover {
  transform: translateY(-4px);
  border-color: var(--yellow);
  box-shadow: 0 8px 30px rgba(245,197,24,.15);
}
.game-card .thumb-wrap {
  position: relative;
  aspect-ratio: 16/10;
  background: var(--bg3);
  overflow: hidden;
}
.game-card .thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.game-card:hover .thumb-wrap img { transform: scale(1.06); }
.thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  background: var(--bg3);
}
.game-card .play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
}
.game-card:hover .play-overlay { opacity: 1; }
.play-btn {
  width: 44px;
  height: 44px;
  background: var(--yellow);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #000;
  transform: scale(.8);
  transition: transform var(--transition);
}
.game-card:hover .play-btn { transform: scale(1); }

.game-card .card-body {
  padding: 10px 12px 12px;
}
.game-card .card-title {
  font-weight: 800;
  font-size: 13px;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--text-dim);
}
.card-rating { color: var(--yellow); font-weight: 700; }
.card-cat {
  background: var(--bg3);
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--text-muted);
}

/* LOCK overlay on card for non-subscribers */
.card-locked .thumb-wrap::after {
  content: '🔒';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

/* ===============================================
   CATEGORY FILTER PILLS
   =============================================== */
.cat-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.cat-pill {
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  border: 2px solid var(--border);
  color: var(--text-muted);
  background: transparent;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.cat-pill:hover {
  border-color: var(--yellow);
  color: var(--yellow);
}
.cat-pill.active {
  background: var(--yellow);
  border-color: var(--yellow);
  color: #000;
}

/* ===============================================
   SEARCH BAR
   =============================================== */
.search-wrap {
  position: relative;
  max-width: 440px;
  margin-bottom: 24px;
}
.search-wrap input {
  width: 100%;
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  padding: 10px 16px 10px 42px;
  outline: none;
  transition: border-color var(--transition);
}
.search-wrap input::placeholder { color: var(--text-dim); }
.search-wrap input:focus { border-color: var(--yellow); }
.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  pointer-events: none;
  color: var(--text-dim);
}

/* ===============================================
   GAME PLAY PAGE
   =============================================== */
.game-stage {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  padding: 20px;
}
.game-stage-inner { max-width: 1000px; margin: 0 auto; }
.game-iframe-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid var(--border);
}
.game-iframe-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}
.game-stage-title {
  font-family: var(--font-head);
  font-size: 20px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.fullscreen-btn {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

/* ===============================================
   FORM PAGES (Login / Subscribe)
   =============================================== */
.form-page {
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
.form-page::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245,197,24,.08), transparent 70%);
  top: -200px;
  right: -200px;
  pointer-events: none;
}
.form-page::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,229,204,.06), transparent 70%);
  bottom: -100px;
  left: -100px;
  pointer-events: none;
}
.form-card {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  box-shadow: var(--shadow);
}
.form-card .form-header {
  text-align: center;
  margin-bottom: 32px;
}
.form-card .form-icon { font-size: 40px; margin-bottom: 12px; }
.form-card h1 {
  font-family: var(--font-head);
  font-size: 26px;
  margin-bottom: 6px;
}
.form-card .form-sub {
  color: var(--text-muted);
  font-size: 14px;
}

/* form elements */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-weight: 700;
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 8px;
}
.form-group .input-wrap { position: relative; }
.form-group .input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  pointer-events: none;
}
.form-group input[type=tel],
.form-group input[type=text],
.form-group input[type=password] {
  width: 100%;
  background: var(--bg2);
  border: 2px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  padding: 12px 14px 12px 42px;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-group input:focus {
  border-color: var(--yellow);
  box-shadow: 0 0 0 3px rgba(245,197,24,.15);
}
.form-group input::placeholder { color: var(--text-dim); }
.form-hint { font-size: 12px; color: var(--text-dim); margin-top: 6px; }

.form-divider {
  text-align: center;
  margin: 20px 0;
  color: var(--text-dim);
  font-size: 13px;
  position: relative;
}
.form-divider::before, .form-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 42%;
  height: 1px;
  background: var(--border);
}
.form-divider::before { left: 0; }
.form-divider::after { right: 0; }

/* alerts */
.alert {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.alert-error { background: rgba(255,82,82,.15); border: 1px solid rgba(255,82,82,.4); color: var(--coral); }
.alert-success { background: rgba(0,229,204,.12); border: 1px solid rgba(0,229,204,.35); color: var(--teal); }
.alert-info { background: rgba(245,197,24,.1); border: 1px solid rgba(245,197,24,.3); color: var(--yellow); }

/* ---- SUBSCRIBE PAGE PLAN CARD ---- */
.plan-card {
  background: var(--bg3);
  border: 2px solid var(--yellow);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 24px;
  text-align: center;
}
.plan-price {
  font-family: var(--font-head);
  font-size: 36px;
  color: var(--yellow);
  margin: 4px 0;
}
.plan-price small {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-muted);
}
.plan-features {
  list-style: none;
  margin: 14px 0 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
  text-align: left;
}
.plan-features li::before { content: '✅ '; }

/* ===============================================
   STATS BAR
   =============================================== */
.stats-bar {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  padding: 16px 20px;
}
.stats-bar-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  gap: 32px;
  justify-content: center;
  flex-wrap: wrap;
}
.stat-item { text-align: center; }
.stat-number {
  font-family: var(--font-head);
  font-size: 22px;
  color: var(--yellow);
  display: block;
}
.stat-label { font-size: 12px; color: var(--text-dim); font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }

/* ===============================================
   SECTION SPACING
   =============================================== */
.section { margin-bottom: 48px; }

/* ===============================================
   EMPTY STATE
   =============================================== */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-dim);
}
.empty-state .empty-icon { font-size: 48px; margin-bottom: 12px; }
.empty-state p { font-size: 16px; }

/* ===============================================
   FOOTER
   =============================================== */
.site-footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  margin-top: 60px;
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 20px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
}
.footer-brand .logo { margin-bottom: 12px; }
.footer-brand p { font-size: 13px; color: var(--text-muted); max-width: 280px; }
.footer-links h4 {
  font-family: var(--font-head);
  font-size: 14px;
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing: .5px;
}
.footer-links a {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--yellow); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 16px 20px;
  text-align: center;
  font-size: 12px;
  color: var(--text-dim);
}
.footer-bottom a { color: var(--yellow); }

/* ===============================================
   RESPONSIVE
   =============================================== */
@media (max-width: 768px) {
  .main-nav, .header-actions .user-badge { display: none; }
  .hamburger { display: flex; }
  .site-header { height: var(--header-h); }
  .mobile-nav { display: flex; }

  .hero { padding: 48px 20px 40px; }
  .hero-cta { flex-direction: column; align-items: center; }
  .hero-cta .btn { width: 100%; max-width: 280px; }

  .games-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }

  .footer-inner { grid-template-columns: 1fr; gap: 24px; }

  .form-card { padding: 28px 20px; }
  .stats-bar-inner { gap: 20px; }

  .header-actions .btn-outline { display: none; }
  
   .badge-pro { display: none; }
  .header-actions a[href="profile.php"] { display: none; }

}

@media (max-width: 480px) {
  .games-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-pills { gap: 6px; }
  .cat-pill { font-size: 12px; padding: 6px 12px; }
}

/* ===============================================
   FULLSCREEN STYLES
   =============================================== */
#gameWrap:fullscreen,
#gameWrap:-webkit-full-screen,
#gameWrap:-moz-full-screen,
#gameWrap:-ms-fullscreen,
#gameFrame:fullscreen,
#gameFrame:-webkit-full-screen,
#gameFrame:-moz-full-screen,
#gameFrame:-ms-fullscreen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 9999;
  background: #000;
}

#gameWrap:fullscreen iframe,
#gameWrap:-webkit-full-screen iframe,
#gameWrap:-moz-full-screen iframe,
#gameWrap:-ms-fullscreen iframe,
#gameFrame:fullscreen,
#gameFrame:-webkit-full-screen,
#gameFrame:-moz-full-screen,
#gameFrame:-ms-fullscreen {
  width: 100vw !important;
  height: 100vh !important;
  border: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

#gameWrap:fullscreen + .fullscreen-btn,
#gameWrap:-webkit-full-screen + .fullscreen-btn,
#gameWrap:-moz-full-screen + .fullscreen-btn,
#gameWrap:-ms-fullscreen + .fullscreen-btn,
#gameFrame:fullscreen ~ .fullscreen-btn,
#gameFrame:-webkit-full-screen ~ .fullscreen-btn,
#gameFrame:-moz-full-screen ~ .fullscreen-btn,
#gameFrame:-ms-fullscreen ~ .fullscreen-btn {
  position: fixed;
  top: 10px;
  right: 10px;
  z-index: 10000;
}
