:root {
  --bg-primary: #000000;
  --bg-secondary: #1d1d1f;
  --text-primary: #f5f5f7;
  --text-secondary: #86868b;
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --border: rgba(255,255,255,.1);
  --glass: rgba(255,255,255,.05);
  --shadow-sm: 0 2px 8px rgba(0,0,0,.1);
  --shadow-md: 0 4px 16px rgba(0,0,0,.12);
  --shadow-lg: 0 12px 48px rgba(0,0,0,.18);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  backdrop-filter: saturate(180%) blur(20px);
  background: rgba(0,0,0,.72);
  border-bottom: 1px solid var(--border);
}

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

.nav-brand {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-link {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 14px;
  opacity: 0.92;
  transition: opacity 0.2s ease;
}

.nav-link:hover {
  opacity: 1;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, 
    rgba(0,113,227,.15) 0%, 
    rgba(147,51,234,.12) 50%, 
    rgba(236,72,153,.1) 100%),
    var(--bg-primary);
  padding: 120px 24px 80px;
}

.hero-gradient {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(120,119,198,0.3), transparent),
    radial-gradient(ellipse 60% 80% at 30% 120%, rgba(236,72,153,0.2), transparent);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 980px;
  text-align: center;
}

.hero-title {
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.7) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(18px, 2.5vw, 28px);
  color: var(--text-secondary);
  margin-bottom: 48px;
  font-weight: 400;
  letter-spacing: -0.01em;
}

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

.search-input,
.search-select {
  background: var(--glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 980px;
  padding: 14px 24px;
  font-size: 16px;
  color: var(--text-primary);
  outline: none;
  transition: all 0.2s ease;
}

.search-input {
  flex: 1;
  min-width: 280px;
}

.search-select {
  min-width: 180px;
}

.search-input:focus,
.search-select:focus {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.2);
}

.search-input::placeholder {
  color: var(--text-secondary);
}

/* Main Section */
.main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px 120px;
}

.section-header {
  margin-bottom: 48px;
  text-align: center;
}

.section-title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.section-count {
  color: var(--text-secondary);
  font-size: 18px;
}

/* Games Grid */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
}

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

/* Game Card */
.game-card {
  position: relative;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.game-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(255,255,255,.15);
}

.game-card:hover .game-cover img {
  transform: scale(1.05);
}

.game-cover {
  position: relative;
  width: 100%;
  height: 240px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(0,113,227,.2), rgba(147,51,234,.2));
}

.game-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.game-content {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.game-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.game-title {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.game-updated {
  font-size: 13px;
  color: var(--text-secondary);
  white-space: nowrap;
  flex-shrink: 0;
}

.game-description {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.5;
  flex: 1;
}

.game-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.game-tag {
  font-size: 13px;
  color: var(--text-primary);
  background: var(--glass);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 16px;
  backdrop-filter: blur(10px);
  transition: all 0.2s ease;
}

.game-card:hover .game-tag {
  background: rgba(255,255,255,.1);
}

/* Footer */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 48px 24px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  color: var(--text-secondary);
}

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

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

/* Empty State */
.empty-state {
  text-align: center;
  padding: 80px 24px;
  color: var(--text-secondary);
  font-size: 18px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .nav-content {
    padding: 0 16px;
  }

  .hero {
    min-height: 80vh;
    padding: 100px 16px 60px;
  }

  .hero-search {
    flex-direction: column;
    align-items: stretch;
  }

  .search-input,
  .search-select {
    min-width: 100%;
  }

  .main {
    padding: 60px 16px 80px;
  }

  .section-header {
    margin-bottom: 32px;
  }

  .game-card {
    border-radius: 20px;
  }

  .game-cover {
    height: 200px;
  }

  .game-content {
    padding: 20px;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}
