/* 
 * Responsive CSS for Concert Ticket Booking Website
 * Author: Manus
 * Date: 05/06/2025
 */

/* ===== MOBILE FIRST APPROACH ===== */
/* Base styles are in main.css, this file contains only responsive adjustments */

/* ===== SMALL DEVICES (MOBILE) ===== */
/* Default styles are for mobile */

/* ===== MEDIUM DEVICES (TABLETS, 576px AND UP) ===== */
@media (min-width: 576px) {
  /* ===== LAYOUT ===== */
  .container {
    max-width: 540px;
  }
  
  /* ===== HEADER ===== */
  .search-input {
    width: 150px;
  }
  
  /* ===== CONCERT CARDS ===== */
  .concerts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* ===== NEWS SECTION ===== */
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* ===== ARTISTS SECTION ===== */
  .artists-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  /* ===== FOOTER ===== */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
  }
}

/* ===== LARGE DEVICES (DESKTOPS, 992px AND UP) ===== */
@media (min-width: 992px) {
  /* ===== LAYOUT ===== */
  .container {
    max-width: 960px;
  }
  
  /* ===== HEADER ===== */
  .hamburger {
    display: none;
  }
  
  .nav-list {
    display: flex;
  }
  
  .search-input {
    width: 200px;
  }
  
  /* ===== CONCERT CARDS ===== */
  .concerts-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  /* ===== NEWS SECTION ===== */
  .news-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  /* ===== ARTISTS SECTION ===== */
  .artists-grid {
    grid-template-columns: repeat(5, 1fr);
  }
  
  /* ===== FOOTER ===== */
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

/* ===== EXTRA LARGE DEVICES (LARGE DESKTOPS, 1200px AND UP) ===== */
@media (min-width: 1200px) {
  /* ===== LAYOUT ===== */
  .container {
    max-width: 1140px;
  }
}

/* ===== MOBILE SPECIFIC STYLES (MAX-WIDTH 575px) ===== */
@media (max-width: 575px) {
  /* ===== HEADER ===== */
  .header-container {
    flex-wrap: wrap;
  }
  
  .logo {
    margin-bottom: var(--spacing-sm);
  }
  
  .hamburger {
    display: block;
    order: 3;
  }
  
  .nav {
    order: 4;
    width: 100%;
    margin-top: var(--spacing-sm);
  }
  
  .nav-list {
    display: none;
    flex-direction: column;
    width: 100%;
  }
  
  .nav-list.active {
    display: flex;
  }
  
  .nav-item {
    margin: 0;
    border-bottom: 1px solid var(--color-light-gray);
  }
  
  .nav-link {
    display: block;
    padding: var(--spacing-sm) 0;
  }
  
  .nav-dropdown-content {
    position: static;
    box-shadow: none;
    padding-left: var(--spacing-md);
    background-color: rgba(145, 107, 191, 0.05);
  }
  
  .search-form {
    flex-grow: 1;
    order: 2;
  }
  
  .search-input {
    width: 100%;
  }
  
  .header-actions {
    order: 1;
  }
  
  /* ===== HERO BANNER ===== */
  .hero {
    height: 400px;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: var(--spacing-sm);
  }
  
  /* ===== CONCERT CARDS ===== */
  .concerts-grid {
    grid-template-columns: 1fr;
  }
  
  /* ===== TOP 10 LIST ===== */
  .top10-image {
    display: none;
  }
  
  .top10-details {
    flex-direction: column;
  }
  
  .top10-detail {
    margin-right: 0;
    margin-bottom: var(--spacing-xs);
  }
  
  /* ===== NEWS SECTION ===== */
  .news-grid {
    grid-template-columns: 1fr;
  }
  
  /* ===== ARTISTS SECTION ===== */
  .artists-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* ===== NEWSLETTER ===== */
  .newsletter-form {
    flex-direction: column;
  }
  
  .newsletter-button {
    width: 100%;
    padding: var(--spacing-sm) 0;
    margin-top: var(--spacing-sm);
  }
  
  /* ===== FOOTER ===== */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: var(--spacing-md);
    text-align: center;
  }
  
  .footer-bottom-links {
    justify-content: center;
  }
  
  /* ===== FORMS ===== */
  .form-group {
    margin-bottom: var(--spacing-lg);
  }
  
  /* ===== PAGINATION ===== */
  .pagination-item:not(.pagination-prev):not(.pagination-next):not(.active):not(:nth-child(2)):not(:nth-last-child(2)) {
    display: none;
  }
  
  /* ===== MODAL ===== */
  .modal {
    width: 95%;
  }
  
  /* ===== TABLES ===== */
  .table-responsive {
    overflow-x: auto;
  }
}

/* ===== TABLET SPECIFIC STYLES (576px - 991px) ===== */
@media (min-width: 576px) and (max-width: 991px) {
  /* ===== HEADER ===== */
  .hamburger {
    display: block;
  }
  
  .nav-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--color-white);
    box-shadow: var(--shadow-md);
    z-index: 1000;
    flex-direction: column;
  }
  
  .nav-list.active {
    display: flex;
  }
  
  .nav-item {
    margin: 0;
    border-bottom: 1px solid var(--color-light-gray);
  }
  
  .nav-link {
    display: block;
    padding: var(--spacing-md);
  }
  
  .nav-dropdown-content {
    position: static;
    box-shadow: none;
    padding-left: var(--spacing-md);
    background-color: rgba(145, 107, 191, 0.05);
  }
  
  /* ===== HERO BANNER ===== */
  .hero-title {
    font-size: 2.5rem;
  }
  
  /* ===== CONCERT CARDS ===== */
  .concert-card-actions {
    flex-direction: column;
    gap: var(--spacing-sm);
  }
  
  /* ===== ARTISTS SECTION ===== */
  .artist-image {
    width: 100px;
    height: 100px;
  }
  
  /* ===== NEWSLETTER ===== */
  .newsletter-form {
    max-width: 400px;
    margin: 0 auto;
  }
}

/* ===== PRINT STYLES ===== */
@media print {
  body {
    background-color: var(--color-white);
    color: #000;
  }
  
  .header, .footer, .nav, .hero, .newsletter-section {
    display: none;
  }
  
  .container {
    width: 100%;
    max-width: none;
    padding: 0;
    margin: 0;
  }
  
  a {
    color: #000;
    text-decoration: underline;
  }
  
  .btn, .form-control {
    border: 1px solid #000;
  }
  
  .card, .table {
    border: 1px solid #000;
  }
  
  .card {
    box-shadow: none;
  }
  
  @page {
    margin: 2cm;
  }
}

