/* Mobile First Responsive Styles */

/* Extra small devices (phones) */
@media (max-width: 576px) {
  .header-inner {
    height: 60px;
  }

  .logo img {
    height: 32px;
  }

  .logo-text {
    font-size: var(--text-lg);
  }

  .nav {
    display: none;
  }

  .mobile-menu {
    display: block;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .hero {
    padding: var(--space-2xl) 0;
  }

  .hero-title {
    font-size: var(--text-3xl);
  }

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

  .section-title {
    font-size: var(--text-2xl);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .footer-brand {
    text-align: center;
  }

  .footer-brand .logo {
    justify-content: center;
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }

  .casino-card {
    flex-direction: column;
    text-align: center;
  }

  .casino-card-actions {
    width: 100%;
  }

  .casino-card-actions .btn {
    width: 100%;
  }

  .modal {
    max-height: 100vh;
    border-radius: 0;
    height: 100%;
  }

  .breadcrumbs {
    font-size: var(--text-xs);
  }

  .pagination {
    flex-wrap: wrap;
  }

  .pagination-item {
    min-width: 40px;
    height: 40px;
  }

  .carousel-pill {
    padding: var(--space-xs) var(--space-md);
    font-size: var(--text-xs);
    min-height: 40px;
  }
}

/* Small devices (landscape phones, small tablets) */
@media (min-width: 577px) and (max-width: 768px) {
  .nav {
    display: none;
  }

  .mobile-menu {
    display: block;
    top: 70px;
  }

  .mobile-menu-btn {
    display: flex;
  }

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

  .footer-brand {
    grid-column: span 2;
    text-align: center;
  }

  .footer-brand .logo {
    justify-content: center;
  }
}

/* Medium devices (tablets) */
@media (min-width: 769px) and (max-width: 992px) {
  .nav {
    display: none;
  }

  .mobile-menu {
    display: block;
    top: 70px;
  }

  .mobile-menu-btn {
    display: flex;
  }

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

  .footer-brand {
    grid-column: span 2;
  }
}

/* Large devices (desktops) */
@media (min-width: 993px) {
  .nav {
    display: flex;
  }

  .mobile-menu-btn,
  .mobile-menu {
    display: none !important;
  }
}

/* Extra large devices */
@media (min-width: 1200px) {
  :root {
    --container-max: 1280px;
  }
}

/* High resolution displays */
@media (min-width: 1400px) {
  :root {
    --container-max: 1400px;
  }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .carousel-row-1,
  .carousel-row-2,
  .carousel-row-3 {
    animation: none;
  }
}

/* Print styles */
@media print {
  .header,
  .footer,
  .nav,
  .mobile-menu-btn,
  .carousel-section,
  .modal-overlay,
  .btn {
    display: none !important;
  }

  body {
    background: white;
    color: black;
  }

  .article-content {
    max-width: 100%;
  }

  a {
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
  }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
  .btn:hover,
  .card:hover,
  .category-card:hover,
  .carousel-pill:hover {
    transform: none;
  }

  .nav-link,
  .btn,
  .pagination-item,
  .tag,
  .carousel-pill {
    min-height: 48px;
  }
}

/* Dark mode support (already dark, but for explicit preference) */
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
  }
}
