/* ==========================================================================
   Nevada Landing Hotel & Casino - Responsive Styles
   Mobile-First Approach
   ========================================================================== */

/* --------------------------------------------------------------------------
   Base Mobile Styles (0 - 599px)
   Most base styles are already mobile-friendly in main.css
   -------------------------------------------------------------------------- */

/* Mobile Navigation */
@media (max-width: 899px) {
  .header-inner {
    height: var(--header-height-mobile);
  }

  .nav-main {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .hero {
    margin-top: var(--header-height-mobile);
  }

  .hero-title {
    font-size: var(--text-3xl);
  }

  .hero-subtitle {
    font-size: var(--text-lg);
  }

  .hero-page {
    min-height: 30vh;
  }

  .hero-page .hero-title {
    font-size: var(--text-2xl);
  }
}

/* Mobile Grid */
@media (max-width: 599px) {
  :root {
    --space-lg: 1rem;
    --space-xl: 1.5rem;
    --space-2xl: 2rem;
    --space-3xl: 2.5rem;
    --space-4xl: 3rem;
  }

  h1 {
    font-size: var(--text-2xl);
  }

  h2 {
    font-size: var(--text-xl);
  }

  h3 {
    font-size: var(--text-lg);
  }

  .container {
    padding: 0 var(--space-md);
  }

  /* Stack grids on mobile */
  .grid-cols-2,
  .grid-cols-3,
  .grid-cols-4 {
    grid-template-columns: 1fr;
  }

  /* Hero adjustments */
  .hero-content {
    padding: var(--space-lg);
  }

  .hero-cta {
    flex-direction: column;
  }

  .hero-cta .btn {
    width: 100%;
  }

  /* Cards */
  .card-body {
    padding: var(--space-md);
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    text-align: center;
  }

  .footer-brand {
    max-width: none;
  }

  /* Tables - horizontal scroll or stack */
  .table th,
  .table td {
    padding: var(--space-sm) var(--space-md);
    font-size: var(--text-sm);
  }

  /* Stats row */
  .stats-row {
    flex-direction: column;
    gap: var(--space-lg);
  }

  .stat-item {
    padding: var(--space-md) 0;
    border-right: none;
    border-bottom: 1px solid var(--color-gold);
  }

  .stat-item:last-child {
    border-bottom: none;
  }

  /* Gallery */
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  /* Victorian elements */
  .victorian-frame {
    padding: var(--space-lg);
  }

  .ornate-divider {
    margin: var(--space-xl) 0;
  }

  .header-decorated h2::before,
  .header-decorated h2::after {
    display: none;
  }

  .quote-victorian {
    padding: var(--space-lg) var(--space-xl);
    font-size: var(--text-lg);
  }

  /* Features */
  .features-victorian {
    gap: var(--space-lg);
  }

  .feature-item {
    padding: var(--space-lg);
  }

  .feature-icon {
    width: 60px;
    height: 60px;
    font-size: var(--text-2xl);
  }

  /* Info bar */
  .info-bar-inner {
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
  }

  /* Lightbox */
  .lightbox-nav {
    width: 40px;
    height: 40px;
    font-size: var(--text-lg);
  }

  .lightbox-prev {
    left: var(--space-sm);
  }

  .lightbox-next {
    right: var(--space-sm);
  }

  /* Menu cards */
  .card-menu {
    padding: var(--space-lg);
  }
}

/* --------------------------------------------------------------------------
   Small Tablets (600px - 899px)
   -------------------------------------------------------------------------- */
@media (min-width: 600px) {
  .grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-cta {
    flex-direction: row;
  }
}

/* --------------------------------------------------------------------------
   Tablets / Small Laptops (900px+)
   -------------------------------------------------------------------------- */
@media (min-width: 900px) {
  .nav-toggle {
    display: none;
  }

  .nav-main {
    display: flex;
  }

  .nav-mobile {
    display: none !important;
  }

  .header-inner {
    height: var(--header-height);
  }

  .hero {
    margin-top: var(--header-height);
  }

  .hero-title {
    font-size: var(--text-5xl);
  }

  .hero-page {
    min-height: 40vh;
  }

  .hero-page .hero-title {
    font-size: var(--text-4xl);
  }

  .grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .grid-cols-4 {
    grid-template-columns: repeat(4, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }

  /* Two column layouts */
  .two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
  }

  .two-col-reverse {
    direction: rtl;
  }

  .two-col-reverse > * {
    direction: ltr;
  }

  /* Sidebar layouts */
  .with-sidebar {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: var(--space-2xl);
  }

  .with-sidebar-left {
    grid-template-columns: 320px 1fr;
  }
}

/* --------------------------------------------------------------------------
   Desktop (1200px+)
   -------------------------------------------------------------------------- */
@media (min-width: 1200px) {
  :root {
    --text-5xl: 3.5rem;
    --text-6xl: 4.5rem;
  }

  .hero-title {
    font-size: var(--text-6xl);
  }

  .hero-full {
    min-height: 100vh;
  }

  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  /* Larger sections */
  .section-lg {
    padding: var(--space-4xl) 0;
  }

  /* More spacing for features */
  .features-victorian {
    gap: var(--space-2xl);
  }
}

/* --------------------------------------------------------------------------
   Large Desktop (1600px+)
   -------------------------------------------------------------------------- */
@media (min-width: 1600px) {
  :root {
    --container-max: 1400px;
  }

  .hero-content {
    max-width: 1000px;
  }
}

/* --------------------------------------------------------------------------
   Print Styles
   -------------------------------------------------------------------------- */
@media print {
  .header,
  .footer,
  .nav-toggle,
  .btn,
  .lightbox {
    display: none !important;
  }

  body {
    background: white;
    color: black;
    font-size: 12pt;
  }

  .hero {
    min-height: auto;
    margin-top: 0;
    padding: 20pt 0;
  }

  .hero-bg,
  .hero-overlay {
    display: none;
  }

  .hero-content {
    color: black;
  }

  .hero-title,
  .hero-subtitle {
    color: black;
    text-shadow: none;
  }

  .section {
    padding: 20pt 0;
  }

  a {
    text-decoration: underline;
  }

  .card {
    box-shadow: none;
    border: 1px solid #ccc;
    page-break-inside: avoid;
  }

  img {
    max-width: 100%;
    page-break-inside: avoid;
  }
}

/* --------------------------------------------------------------------------
   High Contrast Mode
   -------------------------------------------------------------------------- */
@media (prefers-contrast: high) {
  :root {
    --color-burgundy: #5a1a20;
    --color-gold: #b8920f;
    --text-muted: #555;
  }

  .btn {
    border-width: 3px;
  }

  .card {
    border: 2px solid var(--text-primary);
  }
}

/* --------------------------------------------------------------------------
   Dark Mode (future enhancement)
   -------------------------------------------------------------------------- */
/*
@media (prefers-color-scheme: dark) {
  :root {
    --color-cream: #1a1a1a;
    --color-cream-dark: #2a2a2a;
    --text-primary: #f5f5f5;
    --text-secondary: #cccccc;
  }
}
*/

/* --------------------------------------------------------------------------
   Touch Device Optimizations
   -------------------------------------------------------------------------- */
@media (hover: none) and (pointer: coarse) {
  /* Larger touch targets */
  .nav-link {
    padding: var(--space-md) var(--space-lg);
  }

  .btn {
    min-height: 48px;
    padding: var(--space-md) var(--space-xl);
  }

  /* Remove hover effects that don't work on touch */
  .card:hover {
    transform: none;
  }

  .card:hover .card-img img {
    transform: none;
  }

  .gallery-item:hover img {
    transform: none;
  }

  .gallery-item:hover::after {
    opacity: 0;
  }
}

/* --------------------------------------------------------------------------
   Landscape Phone
   -------------------------------------------------------------------------- */
@media (max-width: 899px) and (orientation: landscape) {
  .hero {
    min-height: 100vh;
  }

  .hero-full {
    min-height: 100vh;
  }

  .hero-content {
    padding: var(--space-lg);
  }

  .hero-title {
    font-size: var(--text-2xl);
  }

  .nav-mobile {
    padding: var(--space-lg);
  }

  .nav-mobile .nav-link {
    padding: var(--space-sm) 0;
  }
}
