:root {
  --primary: #2c5282;
  --primary-dark: #1a365d;
  --accent: #ed8936;
  --accent-dark: #dd6b20;
  --bg: #f7fafc;
  --card-bg: #ffffff;
  --text: #2d3748;
  --text-light: #718096;
  --border: #e2e8f0;
  --success: #38a169;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--primary-dark);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 20px 0;
  box-shadow: var(--shadow);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
}

.logo svg {
  width: 40px;
  height: 40px;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
  flex-wrap: wrap;
}

nav a {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  padding: 8px 0;
  position: relative;
}

nav a:hover {
  color: white;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s;
}

nav a:hover::after {
  width: 100%;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: white;
  padding: 80px 0;
  text-align: center;
}

.hero h1 {
  font-size: 2.75rem;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero p {
  font-size: 1.25rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 30px;
}

.hero-search {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-search input {
  flex: 1;
  min-width: 200px;
  padding: 15px 20px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
}

.hero-search button {
  background: var(--accent);
  color: white;
  border: none;
  padding: 15px 30px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.hero-search button:hover {
  background: var(--accent-dark);
}

/* Page Hero (smaller) */
.page-hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: white;
  padding: 50px 0;
  text-align: center;
}

.page-hero h1 {
  font-size: 2.25rem;
  margin-bottom: 15px;
}

.page-hero p {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

/* Categories Section */
.categories {
  padding: 60px 0;
}

.categories h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 40px;
  color: var(--text);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.category-card {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid var(--border);
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.category-card svg {
  width: 50px;
  height: 50px;
  margin-bottom: 15px;
  color: var(--primary);
}

.category-card h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
  color: var(--text);
}

.category-card p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 15px;
}

.category-card .btn {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 500;
  transition: background 0.2s;
}

.category-card .btn:hover {
  background: var(--primary-dark);
  color: white;
}

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

.games-section h2 {
  font-size: 1.75rem;
  margin-bottom: 30px;
  color: var(--text);
}

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

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

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

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

.game-card-content {
  padding: 20px;
}

.game-card h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
  color: var(--text);
}

.game-card .game-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.game-meta span {
  background: var(--bg);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  color: var(--text-light);
}

.game-card p {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 15px;
  line-height: 1.5;
}

.game-card .price {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--success);
  margin-bottom: 12px;
}

.game-card .buy-btn {
  display: block;
  background: var(--accent);
  color: white;
  padding: 12px;
  border-radius: 6px;
  text-align: center;
  font-weight: 600;
  transition: background 0.2s;
}

.game-card .buy-btn:hover {
  background: var(--accent-dark);
  color: white;
}

/* Filter Section */
.filter-bar {
  background: var(--card-bg);
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 30px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.filter-bar h3 {
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-btn {
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.9rem;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* Breadcrumb */
.breadcrumb {
  padding: 20px 0;
  font-size: 0.9rem;
}

.breadcrumb a {
  color: var(--text-light);
}

.breadcrumb span {
  color: var(--text-light);
  margin: 0 8px;
}

.breadcrumb strong {
  color: var(--text);
}

/* Footer */
footer {
  background: var(--primary-dark);
  color: white;
  padding: 50px 0 30px;
  margin-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: white;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
}

.footer-col a:hover {
  color: white;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-bottom p {
  margin-bottom: 10px;
}

.affiliate-disclosure {
  font-size: 0.85rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Featured Section */
.featured {
  background: var(--card-bg);
  padding: 60px 0;
}

.featured h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 40px;
}

/* Quick Picks */
.quick-picks {
  padding: 60px 0;
  background: var(--bg);
}

.quick-picks h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 40px;
}

.picks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}

.pick-card {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 25px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.pick-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: var(--primary);
}

.pick-card .game-name {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.pick-card p {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 15px;
}

.pick-card a {
  color: var(--accent);
  font-weight: 500;
}

/* About Section */
.about-section {
  padding: 60px 0;
}

.about-section h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  text-align: center;
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.about-content p {
  color: var(--text-light);
  margin-bottom: 20px;
  font-size: 1.1rem;
}

/* Mobile Menu */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  .mobile-menu-btn {
    display: block;
  }

  nav {
    display: none;
    width: 100%;
  }

  nav.active {
    display: block;
  }

  nav ul {
    flex-direction: column;
    gap: 15px;
    padding: 20px 0;
  }

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

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

/* Utility Classes */
.text-center {
  text-align: center;
}

.mt-4 {
  margin-top: 2rem;
}

.mb-4 {
  margin-bottom: 2rem;
}

/* Tags */
.tag {
  display: inline-block;
  background: var(--bg);
  color: var(--text-light);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  margin: 2px;
}

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

/* Rating Stars */
.rating {
  color: var(--accent);
  font-size: 0.9rem;
  margin-bottom: 8px;
}

/* Subcategory Links */
.subcategory-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}

.subcategory-link {
  background: var(--card-bg);
  border: 1px solid var(--border);
  padding: 10px 20px;
  border-radius: 8px;
  transition: all 0.2s;
}

.subcategory-link:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}
