/*
 * Ojol The Game - Responsive Styles
 * Media Queries for Different Screen Sizes
 */

/* === EXTRA LARGE DESKTOP (1400px and above) === */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }

  .hero-title {
    font-size: 5rem;
  }
}

/* === LARGE DESKTOP (1200px - 1399px) === */
@media (min-width: 1200px) and (max-width: 1399px) {
  .hero-title {
    font-size: 4.5rem;
  }
}

/* === DESKTOP (992px - 1199px) === */
@media (min-width: 992px) and (max-width: 1199px) {
  .hero-title {
    font-size: 4rem;
  }

  .hero-subtitle {
    font-size: 1.3rem;
  }

  h1 { font-size: 3rem; }
  h2 { font-size: 2.25rem; }
  h3 { font-size: 1.75rem; }
}

/* === TABLET (768px - 991px) === */
@media (min-width: 768px) and (max-width: 991px) {
  .hero-section {
    height: 70vh;
  }

  .hero-title {
    font-size: 3rem;
    letter-spacing: 2px;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .hero-buttons .btn {
    padding: 0.75rem 2rem;
    font-size: 1rem;
  }

  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.5rem; }

  section {
    padding: var(--spacing-xl) 0;
  }

  .section-title {
    font-size: 2rem;
  }

  .gallery-item img {
    height: 200px;
  }
}

/* === MOBILE LANDSCAPE & SMALL TABLET (576px - 767px) === */
@media (min-width: 576px) and (max-width: 767px) {
  .hero-section {
    height: 60vh;
    min-height: 500px;
  }

  .hero-title {
    font-size: 2.5rem;
    letter-spacing: 1px;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-buttons .btn {
    padding: 0.65rem 1.5rem;
    font-size: 0.95rem;
  }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.35rem; }
  h4 { font-size: 1.15rem; }

  section {
    padding: var(--spacing-lg) 0;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .card-body {
    padding: var(--spacing-sm);
  }

  .platform-card {
    padding: var(--spacing-md);
  }

  .platform-icon {
    font-size: 3rem;
  }

  .gallery-item img {
    height: 180px;
  }

  .footer {
    padding: var(--spacing-lg) 0 var(--spacing-sm);
  }
}

/* === MOBILE PORTRAIT (below 576px) === */
@media (max-width: 575px) {
  .hero-section {
    height: 60vh;
    min-height: 450px;
  }

  .hero-title {
    font-size: 2rem;
    letter-spacing: 1px;
    margin-bottom: var(--spacing-sm);
  }

  .hero-subtitle {
    font-size: 0.95rem;
    margin-bottom: var(--spacing-md);
  }

  .hero-buttons .btn {
    padding: 0.6rem 1.25rem;
    font-size: 0.9rem;
    margin: 0.25rem;
    display: block;
    width: 100%;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
  }

  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }
  h4 { font-size: 1.1rem; }
  h5 { font-size: 1rem; }

  section {
    padding: var(--spacing-lg) 0;
  }

  .section-title {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
  }

  .section-title::after {
    width: 60px;
    height: 3px;
  }

  /* Navbar */
  .navbar-brand {
    font-size: 1.25rem;
  }

  .navbar-collapse {
    background-color: var(--bg-dark-secondary);
    margin-top: var(--spacing-sm);
    padding: var(--spacing-sm);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
  }

  .navbar-nav .nav-link {
    padding: 0.75rem 1rem !important;
  }

  /* Cards */
  .card-body {
    padding: var(--spacing-sm);
  }

  .card-title {
    font-size: 1.1rem;
  }

  .card-text {
    font-size: 0.9rem;
  }

  /* Platform Cards */
  .platform-card {
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-md);
  }

  .platform-icon {
    font-size: 2.5rem;
  }

  .platform-name {
    font-size: 1.1rem;
  }

  .platform-badge {
    max-width: 160px;
  }

  /* Gallery */
  .gallery-item {
    margin-bottom: var(--spacing-sm);
  }

  .gallery-item img {
    height: 150px;
  }

  .gallery-overlay i {
    font-size: 2rem;
  }

  /* Footer */
  .footer {
    padding: var(--spacing-lg) 0 var(--spacing-sm);
    text-align: center;
  }

  .footer h5 {
    margin-top: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
  }

  .footer-links {
    margin-bottom: var(--spacing-md);
  }

  .social-icons {
    justify-content: center;
  }

  .footer-bottom {
    margin-top: var(--spacing-md);
    font-size: 0.85rem;
  }

  /* Newsletter */
  .newsletter-form .btn {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }

  /* Accordion */
  .accordion-button {
    padding: var(--spacing-sm);
    font-size: 0.95rem;
  }

  .accordion-body {
    padding: var(--spacing-sm);
    font-size: 0.9rem;
  }
}

/* === EXTRA SMALL MOBILE (below 400px) === */
@media (max-width: 399px) {
  .hero-title {
    font-size: 1.75rem;
  }

  .hero-subtitle {
    font-size: 0.9rem;
  }

  .hero-buttons .btn {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }

  .section-title {
    font-size: 1.35rem;
  }

  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.35rem; }
  h3 { font-size: 1.15rem; }
}

/* === LANDSCAPE ORIENTATION === */
@media (max-height: 500px) and (orientation: landscape) {
  .hero-section {
    height: auto;
    min-height: 100vh;
    padding: var(--spacing-xxl) 0;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: var(--spacing-md);
  }
}

/* === HOVER EFFECTS (Only on devices that support hover) === */
@media (hover: hover) {
  .card:hover {
    transform: translateY(-5px);
  }

  .platform-card:hover {
    transform: translateY(-10px);
  }

  .social-icon:hover {
    transform: translateY(-3px);
  }

  .btn:hover {
    transform: translateY(-2px);
  }
}

/* === NO HOVER (Touch devices) === */
@media (hover: none) {
  .card:hover {
    transform: none;
  }

  .platform-card:hover {
    transform: none;
  }

  .card:active {
    transform: scale(0.98);
  }

  .btn:active {
    transform: scale(0.96);
  }
}

/* === PRINT STYLES === */
@media print {
  .navbar,
  .hero-section,
  .footer,
  .btn,
  .social-icons {
    display: none;
  }

  body {
    background-color: white;
    color: black;
  }

  section {
    page-break-inside: avoid;
  }
}
