/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-dark: #111318;
  --bg-surface: #1a1d25;
  --bg-card: #22262f;
  --bg-card-hover: #2a2f3a;
  --accent: #ff5722;
  --accent-hover: #e64a19;
  --accent-gold: #ffc107;
  --text-primary: #f0f0f0;
  --text-secondary: #9aa0ad;
  --text-muted: #6b717f;
  --border: #2e3340;
  --border-light: #3a3f4e;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow: 0 4px 20px rgba(0,0,0,0.4);
  --shadow-glow: 0 0 20px rgba(255,87,34,0.3);
  --font-display: 'Oswald', 'Arial Black', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
}

html { scroll-behavior: smooth; }

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

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

/* ===== COOKIE BANNER ===== */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #1e222c;
  border-top: 1px solid var(--border);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  z-index: 999;
  font-size: 13px;
  color: var(--text-secondary);
}
.cookie-banner button {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}
.cookie-banner button:hover { background: var(--accent-hover); }

/* ===== NAVBAR ===== */
.navbar {
  background: #0e1016;
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.navbar-logo img { height: 32px; }
.navbar-actions { display: flex; gap: 10px; align-items: center; }
.btn-register {
  background: var(--accent);
  color: #fff;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s, box-shadow 0.2s;
  cursor: pointer;
}
.btn-register:hover { background: var(--accent-hover); box-shadow: var(--shadow-glow); }
.btn-login {
  border: 1.5px solid var(--border-light);
  color: var(--text-primary);
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  transition: border-color 0.2s, color 0.2s;
  cursor: pointer;
}
.btn-login:hover { border-color: var(--accent); color: var(--accent); }

/* ===== HERO ===== */
.hero {
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://images.pexels.com/photos/128457/pexels-photo-128457.jpeg?auto=compress&cs=tinysrgb&h=650&w=940');
  background-size: cover;
  background-position: center top;
  opacity: 0.3;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10,12,18,0.97) 38%, rgba(10,12,18,0.3) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 24px 50px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.hero-title {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 1.1;
  color: #fff;
}
.hero-desc {
  color: var(--text-secondary);
  max-width: 500px;
  font-size: 14px;
  line-height: 1.65;
}
.hero-bonus-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent-gold);
}
.hero-bonus-title {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  margin-top: 2px;
}
.hero-bonus-title span { color: var(--accent); }

/* ===== SECTION CONTAINER ===== */
.section { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* ===== QUICK GAMES ===== */
.quick-games {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}
.quick-games .section {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.quick-game-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  transition: border-color 0.2s, background 0.2s;
  cursor: pointer;
}
.quick-game-card:hover { background: var(--bg-card-hover); border-color: var(--accent); }
.quick-game-card img { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.quick-game-card span { font-size: 13px; font-weight: 600; color: var(--text-primary); }

/* ===== CATEGORY TABS ===== */
.categories { padding: 24px 0 0; }
.cat-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.cat-tab {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.cat-tab:hover { background: var(--bg-card-hover); color: var(--text-primary); }
.cat-tab.active { background: var(--bg-card-hover); border-color: var(--accent); color: #fff; }
.cat-tab img { width: 18px; height: 18px; }
.cat-tab .count { font-size: 11px; color: var(--text-muted); margin-left: 2px; }

/* ===== GAMES GRID ===== */
.games-grid { padding: 24px 0 40px; }
.games-grid .section {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.game-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  cursor: pointer;
}
.game-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: var(--shadow-glow);
}
.game-card img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  display: block;
}
.game-card-name {
  padding: 8px 12px 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  text-align: center;
}

/* ===== REVIEW ===== */
.review {
  background: var(--bg-surface);
  padding: 40px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.review-text {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.75;
}

/* ===== CONTENT SECTIONS ===== */
.content-section { padding: 50px 0; border-bottom: 1px solid var(--border); }
.content-inner {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 48px;
  align-items: center;
}
.content-inner.reverse { grid-template-columns: 400px 1fr; }
.content-inner.reverse .content-text { order: 2; }
.content-inner.reverse .content-img { order: 1; }
.content-text h2 {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  line-height: 1.2;
}
.content-text h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin: 20px 0 8px;
}
.content-text p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.75;
  margin-bottom: 12px;
}
.content-text p:last-child { margin-bottom: 0; }
.content-img img {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

/* ===== TABLE ===== */
.info-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  font-size: 14px;
}
.info-table th, .info-table td {
  text-align: left;
  padding: 11px 16px;
  border: 1px solid var(--border);
}
.info-table th {
  background: var(--bg-card);
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.info-table td { background: var(--bg-surface); color: var(--text-secondary); }
.info-table tr:hover td { background: var(--bg-card); }

/* ===== PROBLEMS LIST ===== */
.problems-list { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.problem-item { display: flex; align-items: flex-start; gap: 10px; color: var(--text-secondary); font-size: 14px; line-height: 1.6; }
.problem-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex-shrink: 0; margin-top: 7px; }

/* ===== FAQ ===== */
.faq-section { padding: 50px 0; background: var(--bg-surface); }
.section-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 28px;
}
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 600;
  padding: 16px 20px;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  transition: color 0.2s;
  font-family: var(--font-body);
}
.faq-question:hover { color: var(--accent); }
.faq-arrow { font-size: 18px; transition: transform 0.3s; color: var(--text-muted); flex-shrink: 0; }
.faq-item.open .faq-arrow { transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.3s ease;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.7;
  padding: 0 20px;
}
.faq-item.open .faq-answer { max-height: 300px; padding: 4px 20px 18px; }

/* ===== AUTHOR ===== */
.author-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 32px;
  max-width: 600px;
}
.author-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-gold));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.author-name { font-weight: 700; font-size: 16px; color: #fff; }
.author-role { font-size: 13px; color: var(--text-muted); margin-top: 3px; }
.author-exp {
  display: inline-block;
  background: rgba(255,87,34,0.12);
  color: var(--accent);
  border: 1px solid rgba(255,87,34,0.3);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  margin-top: 6px;
}

/* ===== FOOTER ===== */
.footer {
  background: #0e1016;
  border-top: 1px solid var(--border);
  padding: 48px 24px 28px;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--border);
}
.footer-brand { display: flex; flex-direction: column; gap: 12px; }
.footer-brand img { height: 28px; }
.footer-bonus-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }
.footer-bonus-desc { font-size: 13px; color: var(--text-secondary); font-style: italic; }
.footer-col h4 {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 14px;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: 14px; color: var(--text-muted); transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--accent); }
.support-item { font-size: 12px; color: var(--text-muted); margin-bottom: 4px; }
.support-email { font-size: 14px; color: var(--text-secondary); transition: color 0.2s; }
.support-email:hover { color: var(--accent); }
.footer-newsletter { margin-top: 16px; display: flex; gap: 8px; }
.footer-newsletter input {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  padding: 9px 14px;
  font-size: 13px;
  outline: none;
  font-family: var(--font-body);
}
.footer-newsletter input:focus { border-color: var(--accent); }
.footer-newsletter input::placeholder { color: var(--text-muted); }
.footer-newsletter button {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}
.footer-newsletter button:hover { background: var(--accent-hover); }

.footer-apps { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.app-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 12px;
  color: var(--text-secondary);
  transition: border-color 0.2s, color 0.2s;
}
.app-btn:hover { border-color: var(--accent); color: var(--accent); }

.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.payment-icons { display: flex; gap: 10px; align-items: center; }
.payment-icons img { height: 22px; opacity: 0.7; transition: opacity 0.2s; }
.payment-icons img:hover { opacity: 1; }
.footer-legal { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--text-muted); }
.age-badge {
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
}
.footer-copy { max-width: 1100px; margin: 14px auto 0; font-size: 12px; color: var(--text-muted); text-align: center; }

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-content > * {
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
}
.hero-content > *:nth-child(1) { animation-delay: 0.05s; }
.hero-content > *:nth-child(2) { animation-delay: 0.15s; }
.hero-content > *:nth-child(3) { animation-delay: 0.25s; }
.hero-content > *:nth-child(4) { animation-delay: 0.32s; }
.hero-content > *:nth-child(5) { animation-delay: 0.4s; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .quick-games .section { grid-template-columns: repeat(2, 1fr); }
  .games-grid .section { grid-template-columns: repeat(3, 1fr); }
  .content-inner, .content-inner.reverse { grid-template-columns: 1fr; }
  .content-inner.reverse .content-text { order: 1; }
  .content-inner.reverse .content-img { order: 2; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .hero-title { font-size: 1.8rem; }
  .quick-games .section { grid-template-columns: repeat(2, 1fr); }
  .games-grid .section { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .cat-tabs { gap: 6px; }
  .cat-tab { padding: 7px 12px; font-size: 12px; }
  .cookie-banner { flex-direction: column; align-items: flex-start; }
}
