/* Racing Hub - Dedicated Millimetric Responsive Breakpoint Rules */

/* Ultra-Wide Screens (> 1440px) */
@media (min-width: 1441px) {
  .main-content {
    max-width: 1550px;
    padding: 2rem;
  }

  .news-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .squad-grid {
    grid-template-columns: repeat(5, 1fr);
  }

  .cards-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

/* Desktop Standard (1025px - 1440px) */
@media (max-width: 1440px) and (min-width: 1025px) {
  .news-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .cards-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Tablets & Small Laptops (769px - 1024px) */
@media (max-width: 1024px) and (min-width: 769px) {
  .main-content {
    padding: 1rem;
  }

  .news-hero {
    min-height: 280px;
  }

  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .stats-header-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile Screens (<= 768px) */
@media (max-width: 768px) {
  .main-content {
    padding: 0.85rem;
  }

  /* Text & Titles Responsiveness */
  h1 { font-size: 1.1rem !important; }
  h2 { font-size: 1.35rem !important; }
  h3 { font-size: 1.15rem !important; }

  /* Hero Section */
  .news-hero {
    min-height: 240px;
  }
  .news-hero-content {
    padding: 1.25rem;
  }

  /* Grid Layouts */
  .news-grid {
    grid-template-columns: 1fr;
  }

  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
  }

  .squad-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
  }

  .stats-header-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
  }

  /* Pronostics Match versus box */
  .match-versus-box {
    flex-direction: column;
    gap: 0.85rem;
  }

  .score-inputs {
    order: 2;
  }

  .score-input-number {
    width: 48px;
    height: 48px;
    font-size: 1.25rem;
  }

  /* Live Match Center Scoreboard */
  .live-match-scoreboard {
    gap: 0.85rem;
  }

  .live-score-digits {
    font-size: 2.2rem !important;
  }

  .live-team-logo {
    width: 55px !important;
    height: 55px !important;
    font-size: 1.1rem !important;
  }

  /* Collection Album Header */
  .collection-header-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.25rem;
  }

  /* Modals on Mobile */
  .modal-container {
    padding: 1.25rem;
    max-height: 85vh;
  }
}

/* Extra Small Mobile Screens (< 380px) */
@media (max-width: 380px) {
  .cards-grid {
    grid-template-columns: 1fr;
  }
  
  .squad-grid {
    grid-template-columns: 1fr;
  }

  .logo-text h1 {
    font-size: 1rem !important;
  }

  .btn {
    padding: 0.5rem 0.85rem;
    font-size: 0.8rem;
  }
}
