/* Mobile device styles - Tepper & Bennett */

/* Responsive table styles for mobile */
@media (max-width: 767px) {
  /* Reduce global section padding on mobile */
  section {
    padding-left: 4px !important;
    padding-right: 4px !important;
  }

  /* Optimize tables for mobile - no horizontal scrolling needed */
  #songlist-table,
  #elvis-table {
    table-layout: fixed;
    width: 100%;
  }

  /* Make YouTube column very narrow - just enough for the play button */
  #songlist-table .youtube-header,
  #songlist-table .youtube,
  #songlist-table td:first-child,
  #elvis-table .youtube-header,
  #elvis-table .youtube,
  #elvis-table td:first-child {
    width: 50px !important;
    max-width: 50px !important;
    padding: 0.5rem 0.25rem !important;
    text-align: center;
  }

  /* Adjust other column widths for mobile (YouTube is now first column at 50px) */
  #songlist-table th:nth-child(2),
  #songlist-table td:nth-child(2),
  #elvis-table th:nth-child(2),
  #elvis-table td:nth-child(2) {
    width: 35%; /* Title */
  }

  /* Performer column (only in songlist table) */
  #songlist-table th:nth-child(3),
  #songlist-table td:nth-child(3) {
    width: 28%; /* Performer */
  }

  /* Rights Administrator column */
  #songlist-table th:nth-child(4),
  #songlist-table td:nth-child(4) {
    width: calc(37% - 50px); /* Rights Administrator - songlist (more space now) */
  }

  #elvis-table th:nth-child(3),
  #elvis-table td:nth-child(3) {
    width: calc(65% - 50px); /* Rights Administrator - elvis (no performer column) */
  }

  /* Reduce font size and padding on mobile for better fit */
  #songlist-table td,
  #songlist-table th,
  #elvis-table td,
  #elvis-table th {
    padding: 0.5rem 0.5rem;
    font-size: 0.875rem;
  }

  /* Make play button slightly larger and more tappable on mobile */
  #songlist-table td:first-child a,
  #elvis-table td:first-child a {
    display: inline-block;
    font-size: 1.25rem;
    padding: 0.25rem;
    min-width: 36px;
    min-height: 36px;
    line-height: 1;
  }

  /* Full-width content container */
  .songs-section-content {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
  }
  
  /* Card-based list view instead of a table */
  .mobile-song-list {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  .song-list-entry {
    background-color: white;
    border-bottom: 1px solid #e2e8f0;
    padding: 8px 4px;
    margin-bottom: 6px;
    font-size: 0.8rem;
  }
  
  .song-list-entry:nth-child(even) {
    background-color: #f7fafc;
  }
  
  .mobile-song-title {
    font-weight: 600;
    color: #1A305E;
    margin-bottom: 2px;
    font-size: 0.85rem;
  }
  
  .mobile-song-details {
    display: flex;
    justify-content: space-between;
    margin-top: 4px;
    font-size: 0.75rem;
    color: #4a5568;
  }
  
  .mobile-song-performers {
    margin-bottom: 2px;
  }
  
  .mobile-song-admin {
    font-size: 0.7rem;
    color: #718096;
  }
  
  .listen-button {
    background-color: #dd2c00;
    color: white;
    border-radius: 4px;
    width: 30px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
  }
  
  /* Hide desktop table */
  .desktop-only {
    display: none;
  }
  
  /* Responsive search field improvements */
  .search-container {
    padding: 0;
  }
  
  /* Pagination controls */
  .pagination {
    display: flex;
    justify-content: center;
    margin-top: 0.75rem;
    margin-bottom: 0.75rem;
    gap: 0.75rem;
  }
  
  .pagination-button {
    padding: 8px 16px;
    background-color: #1A305E;
    color: white;
    border: none;
    border-radius: 4px;
    margin: 0;
    font-weight: 600;
    font-size: 0.9rem;
    min-width: 100px;
    height: 40px;
  }
  
  .pagination-button:disabled {
    opacity: 0.5;
  }
  
  /* Loading indicator */
  .animate-pulse {
    animation: pulse 1.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  }
  
  @keyframes pulse {
    0%, 100% {
      opacity: 1;
    }
    50% {
      opacity: 0.5;
    }
  }
  
  /* Pagination info */
  .song-list-pagination-info {
    font-size: 0.7rem;
    color: #6b7280;
    padding: 4px 0;
    font-style: italic;
  }
}

/* Desktop styles */
@media (min-width: 768px) {
  .mobile-only {
    display: none;
  }
  
  .desktop-only {
    display: block;
  }
} 