/* ===========================
   ByteBattleZone.pro – Main CSS
   =========================== */

:root {
  --primary: #6c00c8;
  --primary-dark: #4a0090;
  --accent: #ffd700;
  --accent2: #ff6b35;
  --bg-dark: #0d0020;
  --bg-card: #1a0533;
  --text-light: #f0e6ff;
  --text-muted: #b09cc0;
  --white: #ffffff;
  --success: #2ecc71;
  --danger: #e74c3c;
  --radius: 12px;
  --shadow: 0 8px 32px rgba(108,0,200,0.3);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent2); }

img { max-width: 100%; height: auto; display: block; }

/* ===== HEADER / NAV ===== */
header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(13,0,32,.95);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--primary);
  padding: 0 1.5rem;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: .5px;
}

.logo span { color: var(--accent); }

.logo img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 1.8rem;
}

nav ul li a {
  color: var(--text-light);
  font-weight: 600;
  font-size: .95rem;
  padding: .3rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color .2s, color .2s;
}

nav ul li a:hover,
nav ul li a.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--accent);
  border-radius: 3px;
  transition: .3s;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('../img/hero.jpg') center/cover no-repeat;
  filter: brightness(.45);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.hero-content h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 1.2rem;
  text-shadow: 0 2px 20px rgba(0,0,0,.8);
}

.hero-content h1 span { color: var(--accent); }

.hero-content p {
  font-size: 1.2rem;
  max-width: 560px;
  margin-bottom: 2rem;
  color: #ddd;
}

.btn {
  display: inline-block;
  padding: .85rem 2.2rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: transform .2s, box-shadow .2s, background .2s;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent2));
  color: var(--white);
  box-shadow: 0 4px 20px rgba(108,0,200,.5);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(108,0,200,.7);
  color: var(--white);
}

.btn-accent {
  background: var(--accent);
  color: #1a0533;
}

.btn-accent:hover {
  background: var(--accent2);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
}

.btn-outline:hover {
  background: var(--accent);
  color: #1a0533;
}

.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ===== SECTIONS ===== */
section { padding: 5rem 1.5rem; }

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

.section-title {
  text-align: center;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  margin-bottom: .6rem;
}

.section-title span { color: var(--accent); }

.section-sub {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 3rem;
}

/* ===== GAMES GRID ===== */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.game-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(108,0,200,.3);
  transition: transform .25s, box-shadow .25s;
}

.game-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.game-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.game-card-body {
  padding: 1.4rem;
}

.game-card-body h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: .5rem;
  color: var(--accent);
}

.game-card-body p {
  color: var(--text-muted);
  font-size: .92rem;
  margin-bottom: 1rem;
}

/* ===== ABOUT SECTION ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.about-img img { width: 100%; height: 360px; object-fit: cover; }

.about-text h2 { font-size: 2rem; font-weight: 800; margin-bottom: 1rem; }
.about-text h2 span { color: var(--accent); }
.about-text p { color: var(--text-muted); margin-bottom: 1rem; }

/* ===== FEATURES ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 1.8rem 1.4rem;
  text-align: center;
  border: 1px solid rgba(108,0,200,.25);
  transition: border-color .2s;
}

.feature-card:hover { border-color: var(--accent); }

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: .8rem;
}

.feature-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: .5rem; }
.feature-card p { color: var(--text-muted); font-size: .9rem; }

/* ===== NEWSLETTER ===== */
.newsletter-section {
  background: linear-gradient(135deg, var(--primary-dark), #2d0060);
  border-radius: var(--radius);
  padding: 3.5rem 2rem;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.newsletter-section h2 { font-size: 2rem; font-weight: 800; margin-bottom: .8rem; }
.newsletter-section p { color: var(--text-muted); margin-bottom: 1.8rem; }

.newsletter-form {
  display: flex;
  gap: .8rem;
  max-width: 480px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.newsletter-form input {
  flex: 1;
  min-width: 200px;
  padding: .8rem 1.2rem;
  border-radius: 50px;
  border: 2px solid rgba(108,0,200,.4);
  background: rgba(255,255,255,.07);
  color: var(--white);
  font-size: .95rem;
  outline: none;
  transition: border-color .2s;
}

.newsletter-form input:focus { border-color: var(--accent); }
.newsletter-form input::placeholder { color: var(--text-muted); }

/* ===== CONTACT FORM ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-form-wrap {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 2.5rem;
  border: 1px solid rgba(108,0,200,.3);
}

.contact-form-wrap h2 { font-size: 1.6rem; font-weight: 800; margin-bottom: 1.5rem; }

.form-group { margin-bottom: 1.2rem; }

.form-group label {
  display: block;
  font-size: .9rem;
  font-weight: 600;
  margin-bottom: .4rem;
  color: var(--text-muted);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: .75rem 1rem;
  border-radius: 8px;
  border: 1.5px solid rgba(108,0,200,.35);
  background: rgba(255,255,255,.06);
  color: var(--white);
  font-size: .95rem;
  font-family: inherit;
  outline: none;
  transition: border-color .2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--accent); }

.form-group textarea { resize: vertical; min-height: 120px; }

.form-group select option { background: #1a0533; }

.form-success {
  display: none;
  background: rgba(46,204,113,.15);
  border: 1px solid var(--success);
  border-radius: 8px;
  padding: 1rem;
  color: var(--success);
  text-align: center;
  margin-top: 1rem;
}

.contact-info h3 { font-size: 1.4rem; font-weight: 700; margin-bottom: 1.2rem; }

.contact-item {
  display: flex;
  gap: .8rem;
  align-items: flex-start;
  margin-bottom: 1.2rem;
  padding: 1rem;
  background: var(--bg-card);
  border-radius: 8px;
  border: 1px solid rgba(108,0,200,.2);
}

.contact-item-icon { font-size: 1.4rem; flex-shrink: 0; }
.contact-item-text strong { display: block; font-size: .95rem; margin-bottom: .2rem; }
.contact-item-text span { color: var(--text-muted); font-size: .88rem; }

/* ===== GAME PAGES ===== */
.game-arena {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.game-arena h1 {
  text-align: center;
  font-size: 2.2rem;
  font-weight: 900;
  margin-bottom: .5rem;
}

.game-arena h1 span { color: var(--accent); }
.game-arena .game-desc {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

/* WHEEL */
.wheel-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.wheel-wrap {
  position: relative;
  width: 360px;
  height: 360px;
}

#wheelCanvas {
  border-radius: 50%;
  box-shadow: 0 0 40px rgba(108,0,200,.6), 0 0 80px rgba(255,215,0,.2);
}

.wheel-pointer {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 16px solid transparent;
  border-right: 16px solid transparent;
  border-top: 36px solid var(--accent);
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.6));
  z-index: 10;
}

.wheel-result {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent);
  min-height: 2rem;
  text-align: center;
}

/* SLOTS */
.slots-machine {
  background: var(--bg-card);
  border-radius: 20px;
  padding: 2.5rem;
  border: 3px solid var(--primary);
  box-shadow: var(--shadow);
  max-width: 500px;
  margin: 0 auto;
  text-align: center;
}

.slots-reels {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.reel {
  width: 90px;
  height: 90px;
  background: #0d0020;
  border-radius: 12px;
  border: 2px solid rgba(108,0,200,.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  overflow: hidden;
  position: relative;
}

.reel-inner {
  transition: transform .05s;
  line-height: 90px;
  font-size: 3rem;
}

.slots-result {
  font-size: 1.2rem;
  font-weight: 700;
  min-height: 2rem;
  margin-bottom: 1rem;
  color: var(--accent);
}

.slots-score {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* CHIPS GAME */
.chips-game {
  background: var(--bg-card);
  border-radius: 20px;
  padding: 2rem;
  border: 3px solid var(--primary);
  box-shadow: var(--shadow);
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.chips-board {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: .5rem;
  margin: 1.5rem 0;
}

.chip-cell {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.15);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  transition: transform .15s, box-shadow .15s;
  background: rgba(255,255,255,.05);
}

.chip-cell:hover { transform: scale(1.1); box-shadow: 0 0 12px rgba(255,215,0,.4); }

.chip-cell.player1 { background: #e63946; border-color: #ff6b6b; }
.chip-cell.player2 { background: #2a9d8f; border-color: #4ecdc4; }
.chip-cell.highlight { animation: pulse .5s ease; }

@keyframes pulse {
  0%,100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

.chips-status {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 1rem;
  min-height: 1.8rem;
}

.chips-score-board {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1.2rem;
}

.score-item { text-align: center; }
.score-item .score-label { font-size: .85rem; color: var(--text-muted); }
.score-item .score-val { font-size: 1.8rem; font-weight: 900; }
.score-item.p1 .score-val { color: #e63946; }
.score-item.p2 .score-val { color: #2a9d8f; }

/* ===== FOOTER ===== */
footer {
  background: #070012;
  border-top: 2px solid var(--primary);
  padding: 3rem 1.5rem 1.5rem;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: .9rem;
  margin-top: .8rem;
  max-width: 280px;
}

.footer-col h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 1rem;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: .5rem; }
.footer-col ul li a { color: var(--text-muted); font-size: .9rem; transition: color .2s; }
.footer-col ul li a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid rgba(108,0,200,.25);
  padding-top: 1.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .8rem;
}

.footer-bottom p { color: var(--text-muted); font-size: .85rem; }

.footer-links { display: flex; gap: 1.2rem; }
.footer-links a { color: var(--text-muted); font-size: .85rem; }
.footer-links a:hover { color: var(--accent); }

/* ===== AGE POPUP ===== */
.age-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.92);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.age-box {
  background: linear-gradient(145deg, #1a0533, #2d0060);
  border: 3px solid var(--accent);
  border-radius: 20px;
  padding: 3rem 2.5rem;
  max-width: 480px;
  width: 100%;
  text-align: center;
  box-shadow: 0 0 60px rgba(108,0,200,.5);
}

.age-box .age-icon { font-size: 3.5rem; margin-bottom: 1rem; }
.age-box h2 { font-size: 2rem; font-weight: 900; margin-bottom: .8rem; }
.age-box h2 span { color: var(--accent); }
.age-box p { color: var(--text-muted); margin-bottom: 2rem; font-size: 1rem; }

.age-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.age-btns .btn { min-width: 140px; }

/* ===== COOKIE BANNER ===== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #1a0533;
  border-top: 2px solid var(--primary);
  padding: 1rem 1.5rem;
  z-index: 8000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  transform: translateY(100%);
  transition: transform .4s ease;
}

.cookie-banner.show { transform: translateY(0); }

.cookie-banner p { color: var(--text-muted); font-size: .9rem; flex: 1; min-width: 200px; }
.cookie-banner p a { color: var(--accent); }

.cookie-btns { display: flex; gap: .8rem; flex-wrap: wrap; }

/* ===== POLICY PAGES ===== */
.policy-page {
  max-width: 860px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.policy-page h1 {
  font-size: 2.2rem;
  font-weight: 900;
  margin-bottom: .5rem;
}

.policy-page .policy-date {
  color: var(--text-muted);
  font-size: .9rem;
  margin-bottom: 2.5rem;
}

.policy-page h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--accent);
  margin: 2rem 0 .8rem;
}

.policy-page p, .policy-page li {
  color: var(--text-muted);
  font-size: .97rem;
  margin-bottom: .7rem;
}

.policy-page ul, .policy-page ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.policy-page a { color: var(--accent); }

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, #0d0020 100%);
  padding: 4rem 1.5rem;
  text-align: center;
  border-bottom: 2px solid var(--primary);
}

.page-hero h1 { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 900; }
.page-hero h1 span { color: var(--accent); }
.page-hero p { color: var(--text-muted); margin-top: .8rem; font-size: 1.05rem; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  nav ul { display: none; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: rgba(13,0,32,.98); padding: 1rem 1.5rem; gap: .8rem; border-bottom: 2px solid var(--primary); }
  nav ul.open { display: flex; }
  .nav-toggle { display: flex; }
  .footer-grid { grid-template-columns: 1fr; }
  .wheel-wrap { width: 280px; height: 280px; }
  #wheelCanvas { width: 280px; height: 280px; }
  .chips-board { grid-template-columns: repeat(6, 1fr); }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in { animation: fadeInUp .6s ease both; }
.fade-in-delay-1 { animation-delay: .15s; }
.fade-in-delay-2 { animation-delay: .3s; }
.fade-in-delay-3 { animation-delay: .45s; }

/* ===== BREADCRUMB ===== */
.breadcrumb {
  max-width: 1200px;
  margin: 1.5rem auto 0;
  padding: 0 1.5rem;
  font-size: .88rem;
  color: var(--text-muted);
}

.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { color: var(--accent); }
