/* Music Page Styles - Dark Theme with Gold Accents */

.music-page {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  min-height: 100vh;
  color: #f5f5f5;
}

/* Header */
.music-header {
  background: linear-gradient(180deg, rgba(212, 165, 116, 0.15) 0%, rgba(255, 107, 53, 0.08) 100%);
  border-bottom: 2px solid var(--primary);
  padding: 3rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.music-header::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 107, 53, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.music-header-content {
  position: relative;
  z-index: 2;
}

.back-link {
  color: var(--accent);
  text-decoration: none;
  font-size: 1rem;
  display: inline-block;
  margin-bottom: 1rem;
  transition: color 0.3s ease;
}

.back-link:hover {
  color: var(--primary);
}

.music-title {
  font-size: 3rem;
  color: var(--primary);
  text-shadow: 0 0 20px rgba(255, 107, 53, 0.5);
  margin-bottom: 0.5rem;
  letter-spacing: 2px;
}

.music-subtitle {
  font-size: 1.3rem;
  color: var(--accent);
  font-style: italic;
}

/* Category Navigation */
.category-nav {
  background: rgba(26, 26, 26, 0.8);
  padding: 1.5rem 2rem;
  border-bottom: 1px solid rgba(212, 165, 116, 0.2);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
}

.category-btn {
  background: rgba(212, 165, 116, 0.1);
  color: var(--accent);
  border: 2px solid rgba(212, 165, 116, 0.3);
  padding: 0.75rem 1.5rem;
  margin: 0 0.5rem 0.5rem 0;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
}

.category-btn:hover {
  background: rgba(212, 165, 116, 0.2);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.category-btn.active {
  background: linear-gradient(135deg, #d4a574 0%, #e8a745 100%);
  color: #1a1a1a;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(212, 165, 116, 0.4);
}

/* Main Content */
.music-main {
  padding: 3rem 2rem;
}

.container-wide {
  max-width: 1400px;
  margin: 0 auto;
}

/* Loading State */
.loading-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--accent);
}

.loader {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(212, 165, 116, 0.2);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Songs Grid */
.songs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

@media (max-width: 768px) {
  .songs-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* Song Card */
.song-card {
  background: linear-gradient(135deg, rgba(42, 42, 42, 0.9) 0%, rgba(30, 30, 30, 0.9) 100%);
  border: 2px solid rgba(212, 165, 116, 0.2);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.song-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(212, 165, 116, 0.3);
}

.song-card-header {
  background: linear-gradient(135deg, rgba(212, 165, 116, 0.15) 0%, rgba(255, 107, 53, 0.1) 100%);
  padding: 1.5rem;
  border-bottom: 1px solid rgba(212, 165, 116, 0.2);
}

.song-title {
  font-size: 1.4rem;
  color: var(--primary);
  margin-bottom: 0.3rem;
  font-weight: 600;
}

.song-artist {
  font-size: 1rem;
  color: var(--accent);
  font-style: italic;
}

.song-card-body {
  padding: 1.5rem;
}

.song-category {
  display: inline-block;
  background: rgba(212, 165, 116, 0.2);
  color: var(--accent);
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.song-focus {
  color: #d4d4d4;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.song-scripture-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.scripture-tag {
  background: rgba(255, 107, 53, 0.15);
  color: var(--flame);
  padding: 0.3rem 0.7rem;
  border-radius: 4px;
  font-size: 0.8rem;
  border: 1px solid rgba(255, 107, 53, 0.3);
}

.song-premium-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: linear-gradient(135deg, #ff6b35 0%, #ff8c5a 100%);
  color: white;
  padding: 0.4rem 0.9rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(255, 107, 53, 0.4);
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--accent);
}

.empty-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.empty-state h3 {
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

/* Premium Gate */
.premium-gate {
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.1) 0%, rgba(212, 165, 116, 0.1) 100%);
  border: 2px solid var(--primary);
  border-radius: 12px;
  padding: 3rem 2rem;
  margin-top: 3rem;
  text-align: center;
}

.premium-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.1); }
}

.premium-gate h2 {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.premium-gate p {
  font-size: 1.1rem;
  color: #d4d4d4;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.btn-upgrade-large {
  background: linear-gradient(135deg, #ff6b35 0%, #ff8c5a 100%);
  color: white;
  border: none;
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(255, 107, 53, 0.4);
  font-weight: 600;
}

.btn-upgrade-large:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.6);
}

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(5px);
}

.modal-content {
  position: relative;
  background: linear-gradient(135deg, #2a2a2a 0%, #1e1e1e 100%);
  border: 2px solid var(--primary);
  border-radius: 16px;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
  z-index: 1001;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(212, 165, 116, 0.2);
  color: var(--primary);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 1002;
}

.modal-close:hover {
  background: var(--primary);
  color: #1a1a1a;
  transform: rotate(90deg);
}

.modal-body {
  padding: 2rem;
}

.modal-song-header {
  text-align: center;
  padding-bottom: 2rem;
  border-bottom: 2px solid rgba(212, 165, 116, 0.2);
}

.modal-song-title {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
  text-shadow: 0 0 20px rgba(255, 107, 53, 0.3);
}

.modal-song-artist {
  font-size: 1.3rem;
  color: var(--accent);
  font-style: italic;
}

.modal-song-category {
  display: inline-block;
  background: rgba(212, 165, 116, 0.2);
  color: var(--accent);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  margin-top: 1rem;
}

/* YouTube Player */
.player-section {
  margin: 2rem 0;
}

.youtube-embed {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.youtube-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Lyrics Section */
.lyrics-section {
  margin: 2rem 0;
}

.lyrics-tabs {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid rgba(212, 165, 116, 0.2);
}

.lyrics-tab {
  background: transparent;
  color: var(--accent);
  border: none;
  padding: 1rem 1.5rem;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border-bottom: 3px solid transparent;
  position: relative;
  bottom: -2px;
}

.lyrics-tab:hover {
  color: var(--primary);
}

.lyrics-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  font-weight: 600;
}

.lyrics-content {
  display: none;
  background: rgba(42, 42, 42, 0.5);
  padding: 2rem;
  border-radius: 12px;
  line-height: 2;
  white-space: pre-wrap;
  font-size: 1.1rem;
  color: #e8e8e8;
  border: 1px solid rgba(212, 165, 116, 0.2);
}

.lyrics-content.active {
  display: block;
}

.lyrics-hebrew {
  direction: rtl;
  font-size: 1.3rem;
  font-family: 'Times New Roman', serif;
  line-height: 2.5;
}

/* Spiritual Focus Section */
.spiritual-focus-section {
  margin: 2rem 0;
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.1) 0%, rgba(212, 165, 116, 0.1) 100%);
  padding: 2rem;
  border-radius: 12px;
  border: 2px solid rgba(212, 165, 116, 0.3);
}

.spiritual-focus-section h3 {
  color: var(--primary);
  font-size: 1.5rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.spiritual-focus-text {
  color: #e8e8e8;
  font-size: 1.1rem;
  line-height: 1.8;
  font-style: italic;
}

/* Scripture References Section */
.scripture-section {
  margin: 2rem 0;
}

.scripture-section h3 {
  color: var(--primary);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.scripture-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.scripture-link {
  background: rgba(255, 107, 53, 0.15);
  color: var(--flame);
  padding: 0.7rem 1.2rem;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1rem;
  border: 1px solid rgba(255, 107, 53, 0.3);
  transition: all 0.3s ease;
  display: inline-block;
}

.scripture-link:hover {
  background: rgba(255, 107, 53, 0.25);
  border-color: var(--flame);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
  .music-title {
    font-size: 2rem;
  }

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

  .category-nav {
    padding: 1rem;
  }

  .category-btn {
    font-size: 0.9rem;
    padding: 0.6rem 1rem;
  }

  .music-main {
    padding: 2rem 1rem;
  }

  .modal-content {
    max-width: 95%;
    margin: 1rem;
  }

  .modal-song-title {
    font-size: 1.8rem;
  }

  .lyrics-tabs {
    flex-direction: column;
    gap: 0;
  }

  .lyrics-tab {
    border-bottom: 1px solid rgba(212, 165, 116, 0.2);
    text-align: left;
  }

  .lyrics-tab.active {
    background: rgba(212, 165, 116, 0.1);
  }
}
