/* responsive.css - Media Queries and Mobile UI Optimizations */

/* Tablet & Mobile Breakpoint (Max-width: 991px) */
@media (max-width: 991px) {
  .site-header {
    padding: 10px 0;
  }
  
  .nav-menu, 
  .header-search {
    display: none; /* Hidden on tablet, offcanvas handles nav */
  }
  
  .mobile-nav-toggle {
    display: block;
  }
  
  .hero-section {
    height: 70vh;
    min-height: 480px;
  }
  
  .music-player-container {
    grid-template-columns: 200px 1fr 180px;
  }
}

/* Tablet & Mobile Breakpoint (Max-width: 768px) */
@media (max-width: 768px) {
  section {
    padding: var(--space-10) 0;
  }
  
  h2 {
    font-size: 1.6rem;
  }
  
  .section-header {
    margin-bottom: var(--space-6);
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: var(--space-3);
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }
  
  .hero-buttons .btn-custom {
    width: 100%;
  }

  .search-box-large-input {
    padding: 14px 16px 60px 40px;
    font-size: 0.95rem;
    text-align: center;
  }

  .search-box-large .bi-search {
    left: 14px;
    top: 25px;
    transform: none;
  }

  .search-box-large-btn {
    position: relative;
    right: 0;
    top: 0;
    transform: none;
    width: 100%;
    margin-top: 10px;
  }
  
  /* Responsive Track Table - Hide extra details to save horizontal space */
  .track-table th:nth-child(3), /* Artist (redundant since title has it on mobile) */
  .track-table td:nth-child(3),
  .track-table th:nth-child(4), /* Key/Tone */
  .track-table td:nth-child(4),
  .track-table th:nth-child(5), /* BPM */
  .track-table td:nth-child(5),
  .track-table th:nth-child(6), /* Type */
  .track-table td:nth-child(6) {
    display: none;
  }
  
  .track-table th, 
  .track-table td {
    padding: 10px var(--space-3);
  }

  /* Music Player Mobile Overrides */
  .music-player-bar {
    height: auto;
    padding: var(--space-2) var(--space-4);
  }
  
  .music-player-container {
    display: none; /* Hide desktop player on mobile */
  }
  
  /* Mobile compact player styling */
  .music-player-mobile {
    display: flex !important;
    width: 100%;
  }
  
  .mobile-player-compact {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }
  
  .mobile-player-thumb {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-xs);
    object-fit: cover;
  }
  
  .mobile-player-meta {
    display: flex;
    flex-direction: column;
    max-width: 180px;
  }
  
  .mobile-player-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-heading);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .mobile-player-artist {
    font-size: 0.75rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .mobile-btn-play {
    background: var(--primary);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: #ffffff !important;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(255, 70, 100, 0.2);
  }
  
  .mobile-btn-expand {
    background: none;
    border: none;
    color: var(--text-heading);
    font-size: 1.25rem;
    padding: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .mobile-player-progress {
    display: flex;
    align-items: center;
    width: 100%;
    gap: var(--space-2);
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 4px;
    border-top: 1px solid var(--border-color);
    padding-top: var(--space-1);
  }
}

/* Expanded Full Screen Mobile Player Overlay */
.mobile-player-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-surface);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  padding: var(--space-8) var(--space-6);
  transform: translateY(100%);
  transition: transform var(--transition-normal);
}

.mobile-player-overlay.show {
  transform: translateY(0);
}

.mobile-overlay-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-8);
}

.mobile-overlay-close {
  background: none;
  border: none;
  color: var(--text-heading);
  font-size: 1.5rem;
  cursor: pointer;
}

.mobile-overlay-title {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.mobile-overlay-artwork {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-8);
}

.mobile-overlay-img {
  width: 70vw;
  height: 70vw;
  max-width: 280px;
  max-height: 280px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
}

.mobile-overlay-meta {
  text-align: center;
  margin-bottom: var(--space-6);
}

.mobile-overlay-track-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: var(--space-1);
}

.mobile-overlay-track-artist {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.mobile-overlay-timeline {
  width: 100%;
  margin-bottom: var(--space-8);
}

.mobile-overlay-time-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-display);
  margin-top: var(--space-2);
}

.mobile-overlay-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-6);
  margin-bottom: var(--space-8);
}

.mobile-overlay-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-overlay-btn:hover {
  color: var(--text-heading);
}

.mobile-overlay-btn.active {
  color: var(--primary);
}

.mobile-overlay-btn-play {
  font-size: 1.75rem;
  width: 60px;
  height: 60px;
  background-color: var(--primary);
  color: #ffffff !important;
  border-radius: 50%;
  box-shadow: 0 8px 20px rgba(255, 70, 100, 0.2);
}

.mobile-overlay-btn-play:hover {
  background-color: var(--primary-dark);
  color: #ffffff !important;
  box-shadow: 0 10px 25px rgba(255, 70, 100, 0.35);
}

.mobile-overlay-volume {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 0 var(--space-4);
  color: var(--text-muted);
}

.mobile-overlay-volume i {
  font-size: 1.25rem;
}
