/* ===== Reset & Base ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #1a73e8;
  --primary-dark: #0d47a1;
  --bg: #0f172a;
  --bg-card: #1e293b;
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --accent: #fbbf24;
  --border: #334155;
  --radius: 12px;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* ===== Header ===== */
.header {
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo {
  height: 54px;
  width: auto;
}

.nav {
  display: flex;
  gap: 28px;
}

.nav a {
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--accent);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ===== Hero ===== */
.hero {
  padding: 80px 0 60px;
  text-align: center;
  background: linear-gradient(180deg, #1e293b 0%, var(--bg) 100%);
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 28px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

/* ===== Ads ===== */
.ad-container {
  display: flex;
  justify-content: center;
  padding: 20px;
}

.ad-placeholder {
  background: var(--bg-card);
  border: 1px dashed var(--border);
  color: var(--text-muted);
  padding: 20px 40px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  text-align: center;
  min-width: 300px;
}

/* ===== Games Section ===== */
.games-section {
  padding: 60px 0;
}

.games-section h2,
.categories-section h2,
.about-section h2 {
  font-size: 1.8rem;
  margin-bottom: 8px;
  text-align: center;
}

.section-desc {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 40px;
}

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

.game-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
}

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

.game-thumb {
  position: relative;
  height: 160px;
  background: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
}

.thumb-placeholder {
  font-size: 3.5rem;
  opacity: 0.7;
}

.badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--accent);
  color: #0f172a;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
}

.badge.live {
  background: #22c55e;
  color: #fff;
}

.game-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.game-info {
  padding: 18px;
}

.game-info h3 {
  font-size: 1.15rem;
  margin-bottom: 6px;
}

.game-info p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.game-meta {
  font-size: 0.8rem;
  color: var(--primary);
  font-weight: 500;
}

/* ===== Categories ===== */
.categories-section {
  padding: 60px 0;
  background: #1e293b;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 36px;
}

.category-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  transition: border-color 0.2s;
}

.category-card:hover {
  border-color: var(--primary);
}

.cat-icon {
  font-size: 2.2rem;
  display: block;
  margin-bottom: 12px;
}

.category-card h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.category-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ===== About ===== */
.about-section {
  padding: 60px 0;
  text-align: center;
}

.about-section p {
  max-width: 650px;
  margin: 0 auto 16px;
  color: var(--text-muted);
}

/* ===== Footer ===== */
.footer {
  background: #0a0f1a;
  border-top: 1px solid var(--border);
  padding: 40px 0 20px;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 30px;
}

.footer-logo {
  height: 40px;
  margin-bottom: 10px;
}

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

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .nav {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    padding: 20px;
    border-bottom: 1px solid var(--border);
    gap: 16px;
  }

  .nav.active {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .hero {
    padding: 50px 0 40px;
  }

  .games-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .games-grid {
    grid-template-columns: 1fr;
  }

  .logo {
    height: 40px;
  }
}
