/* Mobile First Responsive Design */

/* Small devices (landscape phones, 576px and up) */
@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }

  /* Navigation */
  .nav-menu {
    position: fixed;
    left: -100%;
    top: 90px;
    flex-direction: column;
    background: rgba(15, 15, 35, 0.98);
    width: 100%;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(20px);
    padding: 3rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-list {
    flex-direction: column;
    gap: 1rem;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .nav-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.1);
    margin-top: 1rem;
  }

  /* Hero Section */
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-disclaimers {
    justify-content: center;
  }

  .disclaimer-badge {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }

  /* Features */
  .features-grid {
    grid-template-columns: 1fr;
  }

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

  .game-categories {
    flex-direction: column;
    align-items: center;
  }

  .category-btn {
    width: 200px;
  }

  /* Support */
  .support-grid {
    grid-template-columns: 1fr;
  }

  /* FAQ */
  .faq-grid {
    grid-template-columns: 1fr;
  }

  /* Featured Slots */
  .slots-grid {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }

  .slot-container {
    padding: 1.5rem;
    width: 100%;
    max-width: 450px;
  }

  .slot-frame {
    height: 225px;
  }

  .slot-frame iframe {
    height: 425px;
    margin-top: -100px;
    margin-bottom: -100px;
  }

  /* Footer */
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .modal-footer {
    flex-direction: column;
  }

  .modal-footer .btn {
    width: 100%;
  }

  /* Game Modal */
  .game-modal .modal-content {
    width: 98%;
    height: 90vh;
    margin: 5% auto;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 1024px) {
  .hero-content {
    gap: 2rem;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .games-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .support-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .faq-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Large devices (desktops, 1024px and up) */
@media (min-width: 1024px) {
  .hero h1 {
    font-size: 3rem;
  }

  .features-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .games-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .support-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .faq-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .container {
    max-width: 1400px;
  }

  .games-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .slots-grid {
    justify-content: center;
  }
}

/* Ultra wide screens (1600px and up) */
@media (min-width: 1600px) {
  .slots-grid {
    justify-content: center;
  }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
  .btn {
    min-height: 44px;
    min-width: 44px;
  }

  .nav-link {
    padding: 1rem;
  }

  .game-play-btn {
    min-height: 50px;
  }

  .category-btn {
    min-height: 44px;
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .logo {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  body {
    background-color: #1a1a1a;
    color: #e0e0e0;
  }

  .feature-card,
  .game-card,
  .support-card {
    background-color: #2d2d2d;
    color: #e0e0e0;
  }

  .modal-content {
    background-color: #2d2d2d;
    color: #e0e0e0;
  }

  .game-disclaimer-box {
    background-color: #3d3d00;
    border-color: #5d5d00;
    color: #ffff99;
  }
}
