/* TazeOyun - Optimized Dark Theme Styles */
/* ======================================= */

/* CSS Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  color: #e2e8f0;
  background-color: #0f172a;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: #f8fafc;
  margin-bottom: 1rem;
}

h1 {
  font-size: 3rem;
  font-weight: 300;
}

h2 {
  font-size: 2.5rem;
  color: #cbd5e1;
}

h3 {
  font-size: 1.5rem;
  color: #e2e8f0;
}

p {
  margin-bottom: 1rem;
  color: #94a3b8;
}

a {
  color: #60a5fa;
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: #93c5fd;
  text-decoration: underline;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Grid System */
.grid {
  display: grid;
  gap: 2rem;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-5 {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* Header Styles */
.site-header {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  border-bottom: 1px solid #475569;
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  min-height: 70px;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: #f8fafc;
  text-decoration: none;
  background: linear-gradient(135deg, #60a5fa, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: flex;
  align-items: center;
}

.logo-img {
  height: 64px;
  width: auto;
  transition: transform 0.2s;
}

.logo:hover {
  text-decoration: none;
  transform: scale(1.05);
}

.logo:hover .logo-img {
  transform: scale(1.05);
}

.main-nav {
  display: flex;
  align-items: center;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  color: #cbd5e1;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
}

.nav-menu a:hover {
  color: #f8fafc;
  background: rgba(96, 165, 250, 0.1);
  text-decoration: none;
}

.nav-menu a[aria-current="page"] {
  color: #60a5fa;
  background: rgba(96, 165, 250, 0.15);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact-btn {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.contact-btn:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
  text-decoration: none;
  color: white;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #cbd5e1;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
  background: rgba(96, 165, 250, 0.1);
  color: #f8fafc;
}

/* Main Content */
.main-content {
  min-height: calc(100vh - 140px);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
  padding: 4rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(96, 165, 250, 0.1) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #f8fafc, #cbd5e1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.25rem;
  color: #94a3b8;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  text-align: center;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  text-decoration: none;
  font-size: 1rem;
}

.btn-primary {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: white;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
  text-decoration: none;
  color: white;
}

.btn-secondary {
  background: linear-gradient(135deg, #64748b, #475569);
  color: white;
}

.btn-secondary:hover {
  background: linear-gradient(135deg, #475569, #334155);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(100, 116, 139, 0.3);
  text-decoration: none;
  color: white;
}

.btn-accent {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  color: white;
}

.btn-accent:hover {
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.3);
  text-decoration: none;
  color: white;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

/* Sections */
section {
  padding: 4rem 0;
}

/* Category Grid */
.category-grid {
  background: #0f172a;
}

.category-card {
  background: linear-gradient(135deg, #1e293b, #334155);
  padding: 2rem;
  border-radius: 16px;
  text-align: center;
  border: 1px solid #475569;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.category-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(96, 165, 250, 0.05),
    rgba(59, 130, 246, 0.1)
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.category-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  border-color: #60a5fa;
}

.category-card:hover::before {
  opacity: 1;
}

.category-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.category-card h3 {
  color: #f8fafc;
  margin-bottom: 1rem;
}

.category-card p {
  color: #94a3b8;
  margin-bottom: 1.5rem;
}

/* Featured Games */
.featured-games {
  background: #1e293b;
}

.game-card {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #475569;
  transition: all 0.3s ease;
  position: relative;
}

.game-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  border-color: #60a5fa;
}

.game-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 1px solid #475569;
  transition: opacity 0.3s ease;
}

.lazy-load {
  opacity: 0.6;
  filter: blur(2px);
}

.lazy-load.loaded {
  opacity: 1;
  filter: none;
}

.lazy-load.error {
  opacity: 0.3;
  filter: grayscale(100%);
}

.game-badges {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.badge {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-secondary {
  background: linear-gradient(135deg, #64748b, #475569);
}

.game-title {
  padding: 1.5rem 1.5rem 0.5rem;
  color: #f8fafc;
  font-size: 1.25rem;
}

.game-description {
  padding: 0 1.5rem;
  color: #94a3b8;
  font-size: 0.9rem;
  line-height: 1.5;
}

.game-tags {
  padding: 1rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  background: rgba(96, 165, 250, 0.1);
  color: #60a5fa;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  border: 1px solid rgba(96, 165, 250, 0.2);
}

.game-features {
  padding: 0 1.5rem 1rem;
}

.game-features h4 {
  color: #cbd5e1;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.game-features ul {
  list-style: none;
  padding: 0;
}

.game-features li {
  color: #94a3b8;
  font-size: 0.8rem;
  padding: 0.25rem 0;
  position: relative;
  padding-left: 1rem;
}

.game-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #60a5fa;
  font-weight: bold;
}

.card-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid #475569;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0, 0, 0, 0.2);
}

.game-price {
  color: #f8fafc;
  font-weight: 700;
  font-size: 1.1rem;
}

/* About Us */
.about-us {
  background: #0f172a;
}

.about-content,
.about-mission {
  background: linear-gradient(135deg, #1e293b, #334155);
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid #475569;
}

.about-stats {
  display: flex;
  gap: 2rem;
  margin: 2rem 0;
}

.about-stats .stat {
  text-align: center;
}

.about-stats .stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: #60a5fa;
}

.about-stats .stat-label {
  color: #94a3b8;
  font-size: 0.9rem;
}

.mission-features {
  display: flex;
  gap: 1.5rem;
  margin: 1.5rem 0;
  flex-wrap: wrap;
}

.feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #cbd5e1;
  font-size: 0.9rem;
}

.feature-icon {
  font-size: 1.2rem;
}

/* Footer */
.site-footer {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  border-top: 1px solid #475569;
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  color: #f8fafc;
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.footer-section p {
  color: #94a3b8;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: #cbd5e1;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: #60a5fa;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-links a {
  display: inline-block;
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.social-links a:hover {
  transform: scale(1.2);
}

.footer-bottom {
  border-top: 1px solid #475569;
  padding-top: 1rem;
  text-align: center;
  color: #64748b;
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: #1e293b;
  color: #f8fafc;
  padding: 8px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 1000;
}

.skip-link:focus {
  top: 6px;
}

/* Responsive Design */
@media (max-width: 920px) {
  .header-content {
    flex-wrap: wrap;
  }

  .main-nav {
    display: none;
    width: 100%;
    order: 3;
  }

  .main-nav.active {
    display: block;
    background: #1e293b;
    border-radius: 8px;
    margin-top: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  }

  .nav-menu {
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem 0;
  }

  .nav-menu a {
    display: block;
    padding: 0.75rem 1rem;
    color: #cbd5e1;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.2s;
  }

  .nav-menu a:hover {
    background-color: #334155;
    color: #f8fafc;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }

  .grid-5 {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 0.5rem;
  }
  
  .about-stats {
    flex-direction: column;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }

  .btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }

  section {
    padding: 2rem 0;
  }

  .category-card,
  .game-card {
    padding: 1rem;
  }

  .game-image {
    height: 150px;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero,
.category-grid,
.featured-games {
  animation: fadeInUp 0.6s ease-out;
}

/* Smooth scrolling for anchor links */
html {
  scroll-behavior: smooth;
}

/* Focus styles for accessibility */
*:focus {
  outline: 2px solid #60a5fa;
  outline-offset: 2px;
}