/* Responsive styles */

/* Large devices (desktops, less than 1200px) */
@media (max-width: 1199.98px) {
  .about-container {
    padding: 0 var(--spacing-md);
  }
  
  .about-image {
    max-width: 250px;
    height: 350px;
  }
}

/* Medium devices (tablets, less than 992px) */
@media (max-width: 991.98px) {
  .hero-content h2 {
    font-size: 2.5rem;
  }
  
  .about-container {
    flex-direction: column;
    gap: var(--spacing-lg);
  }
  
  .about-content {
    order: 1;
    padding: var(--spacing-md);
  }
  
  .about-image {
    order: 2;
    max-width: 100%;
    height: 300px;
    margin-top: var(--spacing-md);
  }
  
  .left-image {
    display: none;
  }
  
  .games-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
}

/* Small devices (landscape phones, less than 768px) */
@media (max-width: 767.98px) {
  .header-container {
    flex-wrap: wrap;
  }
  
  .logo {
    order: 1;
    width: 100%;
    margin-bottom: var(--spacing-sm);
  }
  
  .nav-menu {
    order: 3;
    width: 100%;
    margin-top: var(--spacing-sm);
  }
  
  .nav-menu ul {
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .search-bar {
    order: 2;
    width: 100%;
    justify-content: center;
  }
  
  .search-bar input {
    width: 70%;
  }
  
  .hero-content h2 {
    font-size: 2rem;
  }
  
  .hero-content p {
    font-size: 1rem;
  }
  
  .about-content h2 {
    font-size: 2rem;
  }
  
  .games-container h2 {
    font-size: 2rem;
  }
  
  .footer-links {
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-md);
  }
}

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
  .header-container {
    width: 95%;
  }
  
  .nav-menu ul {
    gap: var(--spacing-sm);
  }
  
  .nav-menu a {
    font-size: 0.9rem;
  }
  
  .hero-content {
    padding: var(--spacing-sm);
  }
  
  .hero-content h2 {
    font-size: 1.8rem;
  }
  
  .about-content h2 {
    font-size: 1.8rem;
  }
  
  .games-container h2 {
    font-size: 1.8rem;
  }
  
  .games-grid {
    grid-template-columns: 1fr;
  }
  
  .game-card {
    max-width: 100%;
  }
  
  .popup-content {
    width: 95%;
    height: 70vh;
  }
}