/* Responsive Styles */

/* Large Desktops (1200px and up) */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
}

/* Desktops (992px to 1199px) */
@media (max-width: 1199px) {
  .container {
    max-width: 960px;
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .games-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
  }
  
  .footer-content {
    grid-template-columns: 1fr 2fr 1fr;
  }
}

/* Tablets (768px to 991px) */
@media (max-width: 991px) {
  .container {
    max-width: 720px;
  }
  
  .hero .container {
    flex-direction: column;
    text-align: center;
  }
  
  .hero-content {
    max-width: 100%;
    margin-bottom: var(--space-6);
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .about-content,
  .community-content {
    flex-direction: column;
    gap: var(--space-6);
  }
  
  .about-image,
  .community-image {
    order: -1;
    max-width: 500px;
    margin: 0 auto;
  }
  
  .about-features {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .games-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
  
  .footer-links {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Small Tablets and Large Phones (576px to 767px) */
@media (max-width: 767px) {
  .container {
    max-width: 540px;
  }
  
  .header {
    padding: var(--space-3) 0;
  }
  
  .nav-menu {
    position: relative;
  }
  
  .menu-toggle {
    display: block;
    z-index: 1001;
  }
  
  .nav-list {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background-color: var(--white);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: right var(--transition-normal);
    z-index: 1000;
    box-shadow: var(--shadow-xl);
  }
  
  .nav-list.active {
    right: 0;
  }
  
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .section-header h2 {
    font-size: 1.8rem;
  }
  
  .about-features {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
  
  .games-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
  
  .testimonials-slider {
    padding: 0 10px;
  }
  
  .testimonial {
    flex: 0 0 300px;
    padding: var(--space-4);
  }
  
  .footer-links {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
  
  .disclaimer-links {
    flex-direction: column;
    gap: var(--space-3);
  }
}

/* Mobile Phones (Up to 575px) */
@media (max-width: 575px) {
  .hero-content h1 {
    font-size: 1.8rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: var(--space-3);
  }
  
  .hero-buttons .btn {
    width: 100%;
  }
  
  .section-header h2 {
    font-size: 1.5rem;
  }
  
  .section-header p {
    font-size: 1rem;
  }
  
  .testimonial {
    flex: 0 0 calc(100% - 40px);
  }
  
  .community-features li {
    font-size: 0.9rem;
  }
  
  .footer-content {
    text-align: center;
  }
  
  .social-icons {
    justify-content: center;
  }
}

/* Landscape Orientation for Mobile */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding: var(--space-12) 0;
  }
  
  .nav-list {
    padding: var(--space-4);
  }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  :root {
    --bg-light: #1F2937;
    --white: #1F2937;
    --text-dark: #F9FAFB;
    --light-gray: #374151;
    --medium-gray: #9CA3AF;
    --dark-gray: #D1D5DB;
  }
  
  .logo-text {
    background: linear-gradient(45deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
  }
  
  .header {
    background-color: rgba(31, 41, 55, 0.9);
  }
  
  .hero {
    background: linear-gradient(135deg, rgba(31, 41, 55, 0.9) 0%, rgba(17, 24, 39, 0.9) 100%);
  }
  
  .menu-toggle span {
    background-color: var(--text-dark);
  }
  
  .shape-divider svg {
    fill: var(--bg-light);
  }
  
  .feature {
    background-color: #2D3748;
  }
  
  .game-card {
    background-color: #2D3748;
  }
  
  .testimonial {
    background-color: #2D3748;
  }
  
  .disclaimer {
    background-color: #2D3748;
    border-top: 1px solid var(--light-gray);
  }
  
  .footer {
    background-color: #111827;
  }
  
  .nav-list {
    background-color: #1F2937;
  }
}