/* Teen Patti Master Game - Responsive Styles */
/* Breakpoints: mobile <768px, tablet 768-992px, desktop >992px */

/* Mobile: < 768px */
@media (max-width: 767.98px) {
  body {
    font-size: 15px;
    padding-bottom: 70px; /* space for fixed download CTA */
  }

  .navbar-brand .logo-img {
    max-height: 32px;
  }

  .logo-text {
    font-size: 1.1rem;
  }

  .hero {
    min-height: 60vh;
  }

  .min-vh-60 {
    min-height: 50vh;
  }

  .hero-title {
    font-size: 1.5rem;
    line-height: 1.3;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-cta .btn {
    display: block;
    width: 100%;
    margin-right: 0 !important;
    margin-bottom: 0.75rem !important;
  }

  .hero-cta .btn:last-child {
    margin-bottom: 0 !important;
  }

  .section {
    padding: 2.5rem 0;
  }

  .section-title {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
  }

  .page-hero {
    padding: 2rem 0;
  }

  .page-title {
    font-size: 1.5rem;
  }

  .page-subtitle {
    font-size: 0.95rem;
  }

  .feature-card,
  .strategy-card,
  .mode-card,
  .step-card {
    margin-bottom: 0; /* row g-4 handles gap */
  }

  .feature-icon {
    width: 48px;
    height: 48px;
    font-size: 1.1rem;
  }

  .stat-value {
    font-size: 1.5rem;
  }

  .stat-card {
    padding: 1rem;
  }

  .app-table th {
    width: 45%;
    font-size: 0.9rem;
  }

  .app-table td {
    font-size: 0.9rem;
  }

  .btn-gold.btn-lg {
    display: block;
    width: 100%;
    text-align: center;
  }

  .cta-section .btn-gold {
    width: 100%;
  }

  .footer-brand,
  .footer-heading {
    text-align: center;
  }

  .footer-tagline {
    text-align: center;
  }

  .footer-links {
    text-align: center;
  }

  .social-icons {
    justify-content: center;
  }

  .footer-bottom .copyright {
    text-align: center;
  }

  /* Fixed bottom download CTA - mobile only */
  .mobile-download-cta {
    display: block !important;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 16px;
    background: rgba(26, 26, 46, 0.98);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
    z-index: 1020;
  }

  .mobile-download-cta .btn {
    width: 100%;
    padding: 0.75rem 1rem;
    font-weight: 600;
  }

  .contact-form .btn-gold {
    width: 100%;
  }

  .legal-content {
    font-size: 0.95rem;
  }

  .blog-content .btn-gold {
    width: 100%;
  }
}

/* Tablet: 768px - 992px */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-cta .btn {
    margin-bottom: 0.5rem;
  }

  .section {
    padding: 3rem 0;
  }

  .feature-card .card-body,
  .strategy-card .card-body {
    padding: 1.25rem;
  }

  .stats-section .row .col-md-3 {
    flex: 0 0 50%;
    max-width: 50%;
  }

  .mobile-download-cta {
    display: none;
  }
}

/* Desktop: > 992px */
@media (min-width: 992px) {
  .mobile-download-cta {
    display: none;
  }

  body {
    padding-bottom: 0;
  }

  .hero-app-logo {
    max-width: 220px;
  }

  .navbar-expand-lg .navbar-nav .nav-link {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* Image lazy-load & aspect ratio for hero */
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 767.98px) {
  .hero-bg .hero-img {
    min-height: 100%;
    object-position: center;
  }
}

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce) {
  .feature-card:hover,
  .strategy-card:hover,
  .mode-card:hover,
  .step-card:hover,
  .btn-gold:hover {
    transform: none;
  }

  .animate__animated {
    animation-duration: 0.01ms !important;
  }
}
