/* ==========================================
   RESPONSIVE BREAKPOINTS
   Mobile First Approach
   ========================================== */

/* Prevent horizontal scroll on all devices */
* {
  max-width: 100%;
  box-sizing: border-box;
}

img, video, iframe {
  max-width: 100%;
  height: auto;
}

/* ==========================================
   MOBILE (max 639px)
   ========================================== */
@media (max-width: 639px) {
  .casino-square {
    aspect-ratio: auto;
    padding: var(--space-md);
    padding-bottom: var(--space-lg);
  }
}

@media (max-width: 400px) {
  .casino-square {
    padding: var(--space-sm);
    padding-bottom: var(--space-md);
    gap: var(--space-xs);
  }

  .casino-square__icon {
    width: 36px;
    height: 36px;
  }

  .casino-square__name {
    font-size: var(--text-sm);
  }

  .casino-square__rank {
    width: 22px;
    height: 22px;
    font-size: 11px;
  }

  .casino-square__btn {
    padding: var(--space-xs) var(--space-sm);
    font-size: 11px;
  }

  .casino-square__score {
    font-size: var(--text-base);
  }

  .casino-square__stars {
    font-size: 10px;
  }
}

/* ==========================================
   TABLET (640px+)
   ========================================== */
@media (min-width: 640px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }

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


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

  .footer__section {
    text-align: left;
  }
}

/* ==========================================
   TABLET LANDSCAPE (768px+)
   ========================================== */
@media (min-width: 768px) {
  .container {
    padding: 0 var(--space-lg);
  }

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

  .hero {
    padding: var(--space-3xl) 0 calc(var(--space-3xl) * 1.5);
  }

  .section {
    padding: var(--space-3xl) 0;
  }

  .section-lg {
    padding: calc(var(--space-3xl) * 1.5) 0;
  }
}

/* ==========================================
   DESKTOP (1024px+)
   ========================================== */
@media (min-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }

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

  /* Show desktop navigation */
  .nav {
    display: block;
  }

  /* Hide mobile menu button and menu */
  .mobile-menu-btn,
  .mobile-menu {
    display: none !important;
  }

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

/* ==========================================
   LARGE DESKTOP (1280px+)
   ========================================== */
@media (min-width: 1280px) {
  .container {
    padding: 0 var(--space-xl);
  }
}

/* ==========================================
   TOUCH DEVICE OPTIMIZATIONS
   ========================================== */
@media (hover: none) {
  .card:hover {
    transform: none;
  }

  .btn-cta:hover {
    transform: none;
  }
}

/* ==========================================
   REDUCED MOTION
   ========================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ==========================================
   PRINT STYLES
   ========================================== */
@media print {
  .header,
  .footer,
  .mobile-menu,
  .mobile-menu-btn,
  .btn {
    display: none !important;
  }

  .main {
    padding-top: 0;
  }

  body {
    background: white;
    color: black;
  }

  .card {
    border: 1px solid #ccc;
    box-shadow: none;
  }
}
