/* ============================================
   CASINO VICTORIA - RESPONSIVE DESIGN
   Mobile-first approach
   ============================================ */

/* === MOBILE MENU (< 768px) === */
@media (max-width: 767px) {
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--color-primary-dark);
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-base);
    align-items: stretch;
  }

  .nav-menu.is-open {
    max-height: 500px;
    box-shadow: var(--shadow-md);
  }

  .nav-link {
    display: block;
    padding: var(--space-4) var(--container-padding);
    border-bottom: 1px solid var(--color-border);
  }

  .nav-link::after {
    display: none;
  }

  .nav-link.active,
  .nav-link:hover {
    background-color: var(--accent-rgba-10);
    color: var(--color-accent);
  }

  /* Hero responsive */
  .hero-title {
    font-size: var(--text-3xl);
  }

  .hero-subtitle {
    font-size: var(--text-base);
  }

  .hero-cta {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  /* Tabs responsive */
  .tabs-header {
    flex-direction: column;
    gap: 0;
    border-bottom: none;
    border-right: 2px solid var(--color-border);
  }

  .tab-btn {
    border-bottom: none;
    border-right: 3px solid transparent;
    margin-bottom: 0;
    margin-right: -2px;
    text-align: left;
  }

  .tab-btn.active {
    border-right-color: var(--color-accent);
    border-bottom: none;
  }

  /* Footer grid */
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
  }

  .footer-section:nth-child(1) {
    grid-column: 1 / -1;
  }
}

/* === TABLET (768px - 1023px) === */
@media (min-width: 768px) and (max-width: 1023px) {
  .games-grid,
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* === DESKTOP (1024px+) === */
@media (min-width: 1024px) {
  .nav-menu {
    display: flex !important;
    max-height: none !important;
  }

  .games-grid,
  .benefits-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-content {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* === LARGE DESKTOP (1440px+) === */
@media (min-width: 1440px) {
  .hero-title {
    font-size: 3.5rem;
  }
}

/* === ACCESSIBILITY: TOUCH TARGETS === */
@media (hover: none) and (pointer: coarse) {
  .btn,
  .nav-link,
  .tab-btn,
  .faq-question {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* === HIGH DPI SCREENS === */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .nav-toggle span,
  .scroll-progress,
  .progress-indicator {
    /* Slightly thicker for better visibility on HD */
  }
}

/* === PRINT STYLES === */
@media print {
  .site-header,
  .site-footer,
  .btn,
  .nav-toggle {
    display: none;
  }

  body {
    background-color: white;
    color: black;
  }

  section {
    page-break-inside: avoid;
  }
}

/* === DARK MODE PREFERENCE (Optional) === */
@media (prefers-color-scheme: dark) {
  /* Note: This site uses light theme as primary.
     If user prefers dark, we could invert, but keeping light as per design spec.
     Uncomment if dark mode toggle is added: */

  /*
  :root {
    --color-primary: #1A1A1A;
    --color-primary-dark: #0D0D0D;
    --color-text: #F5F5F5;
    --color-text-secondary: #CCCCCC;
    --color-border: #333333;
  }
  */
}

/* === LANDSCAPE ORIENTATION (Mobile) === */
@media (max-height: 500px) and (orientation: landscape) {
  section {
    padding: var(--space-6) 0;
  }

  .hero {
    min-height: auto;
    padding: var(--space-6) 0;
  }

  .hero-title {
    font-size: var(--text-2xl);
  }

  .hero-subtitle {
    display: none;
  }
}
