/**
 * Responsive Styles - Premium Scandinavian Minimalist
 */

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

/* ===== TABLETS AND SMALL DESKTOPS (768px - 1024px) ===== */
@media (max-width: 1024px) {
  /* Casino Podium */
  .casino-podium {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .casino-card--featured {
    order: -1;
  }

  /* Casino List Item */
  .casino-list-item {
    grid-template-columns: auto 1fr;
    gap: var(--space-md);
  }

  .casino-list-item__bonus,
  .casino-list-item__metrics {
    grid-column: 2;
  }

  .casino-list-item__actions {
    grid-column: 1 / -1;
    justify-content: stretch;
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid var(--gray-200);
  }

  .casino-list-item__actions .btn {
    flex: 1;
  }

  /* Trust Grid */
  .trust-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  /* Footer Grid */
  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__brand {
    grid-column: 1 / -1;
    max-width: 100%;
  }
}

/* ===== TABLETS (768px) ===== */
@media (max-width: 768px) {
  :root {
    --header-height: 64px;
  }

  /* Header */
  .nav-links {
    display: none;
  }

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

  /* Hero */
  .hero {
    min-height: auto;
    padding: calc(var(--header-height) + var(--space-2xl)) 0 var(--space-2xl);
  }

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

  .hero__content {
    max-width: 100%;
  }

  .hero__visual {
    display: none;
  }

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

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

  .hero__cta {
    flex-direction: column;
  }

  .hero__stats {
    flex-wrap: wrap;
    gap: var(--space-xl);
  }

  .hero__stat {
    flex: 1 1 40%;
  }

  /* Categories */
  .categories__grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  /* Modal */
  .modal {
    width: 95%;
    max-height: 90vh;
  }

  .modal__body {
  overflow-x: hidden;
    max-height: calc(90vh - 140px);
  }
}

/* ===== MOBILE (480px) ===== */
@media (max-width: 480px) {
  :root {
    --header-height: 56px;
  }

  /* Hero */
  .hero__title {
    font-size: var(--text-2xl);
  }

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

  .hero__stats {
    gap: var(--space-lg);
  }

  .hero__stat-value {
    font-size: var(--text-2xl);
  }

  /* Categories */
  .categories__grid {
    grid-template-columns: 1fr;
  }

  .category-pill {
    padding: var(--space-md);
  }

  /* Casino List */
  .casino-list-item {
    grid-template-columns: 1fr;
    text-align: center;
    padding: var(--space-lg);
  }

  .casino-list-item__rank {
    margin: 0 auto var(--space-md);
  }

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

  .casino-list-item__bonus,
  .casino-list-item__metrics {
    grid-column: 1;
    width: 100%;
  }

  .casino-list-item__actions {
    flex-direction: column;
  }

  /* Casino Card */
  .casino-card {
    padding: var(--space-lg);
  }

  .casino-card--featured {
    padding: var(--space-xl);
  }

  .casino-card__bonus-value {
    font-size: var(--text-xl);
  }

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

  .footer-col ul {
    margin-bottom: var(--space-lg);
  }

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

  /* Buttons */
  .btn:not(.btn--sm):not(.btn--inline) {
    width: 100%;
  }

  .btn--inline {
    width: auto;
  }

  /* Forms */
  .form-input,
  .form-textarea {
    font-size: 16px; /* Prevent iOS zoom */
  }

  /* Keywords Carousel */
/* Page Header */
  .page-header {
    padding: calc(var(--header-height) + var(--space-xl)) 0 var(--space-xl);
  }

  .page-header h1 {
    font-size: var(--text-2xl);
  }

  /* Breadcrumb */
  .breadcrumb {
    font-size: var(--text-xs);
  }

  /* Pagination */
  .pagination a,
  .pagination span {
    min-width: 40px;
    height: 40px;
    padding: 0 var(--space-sm);
    font-size: var(--text-sm);
  }

  /* Trust Section */
  .trust-item__icon {
    width: 64px;
    height: 64px;
  }

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

/* ===== TOUCH DEVICE OPTIMIZATIONS ===== */
@media (hover: none) and (pointer: coarse) {
  /* Larger touch targets */
  .nav-links a,
  .mobile-nav a {
    min-height: 48px;
    display: flex;
    align-items: center;
  }

  /* Disable hover effects that don't work well on touch */
  .card:hover,
  .casino-card:hover,
  .category-card:hover,
  .category-pill:hover {
    transform: none;
  }

/* Faster transitions for touch */
  .btn,
  .card,
  
}

/* ===== HIGH RESOLUTION SCREENS ===== */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  /* Crisp borders on retina */
  .card,
  .casino-card,
  .category-card,
  .category-pill,
  .form-input,
  .form-textarea,
  .modal {
    border-width: 0.5px;
  }
}

/* ===== LANDSCAPE PHONES ===== */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding: var(--space-xl) 0;
  }

  .hero__stats {
    display: none;
  }

  .modal {
    max-height: 95vh;
  }

  .modal__body {
    max-height: calc(95vh - 100px);
  }
}

/* ===== DARK MODE SUPPORT ===== */
@media (prefers-color-scheme: dark) {
  /* Optionally add dark mode styles here */
}

/* ===== PRINT STYLES ===== */
@media print {
  .site-header,
  .site-footer,
  .mobile-menu-btn,
  .mobile-nav,
  
body {
    font-size: 12pt;
    line-height: 1.5;
    color: black;
    background: white;
  }

  .container {
    max-width: 100%;
    padding: 0;
  }

  a {
    color: black;
    text-decoration: underline;
  }

  .hero {
    min-height: auto;
    padding: 20pt 0;
    background: white;
    color: black;
  }

  .hero__title,
  .hero__description {
    color: black;
  }

  .article-content img {
    max-width: 100%;
    page-break-inside: avoid;
  }

  h1, h2, h3 {
    page-break-after: avoid;
    color: black;
  }

  .card,
  .casino-card {
    box-shadow: none;
    border: 1px solid #ccc;
    page-break-inside: avoid;
  }
}

/* ===== ACCESSIBILITY ===== */
@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;
  }

  .hero__badge,
  .hero__title,
  .hero__description,
  .hero__cta,
  .hero__stats {
    animation: none;
    opacity: 1;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  .btn--outline {
    border-width: 3px;
  }

  .nav-links a::after {
    height: 3px;
  }

  .card,
  .casino-card,
  .category-card,
  .category-pill {
    border-width: 2px;
  }
}
