/* Landing Page Specific Styles */
.featured-songs {
  padding: 3rem 5%;
  background-color: var(--background-color);
  position: relative;
}

.featured-songs::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23FF69B4' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
  opacity: 0.5;
  z-index: 0;
}

.section-content {
max-width: 1200px;
margin: 0 auto;
position: relative;
z-index: 1;
}

/* Section Heading */
.section-heading {
text-align: center;
margin: 2rem 0 3rem;
position: relative;
}

.section-heading h2 {
font-family: 'Montserrat', sans-serif;
font-size: 2.2rem;
font-weight: 700;
color: #333;
letter-spacing: 0.5px;
margin-bottom: 1rem;
position: relative;
display: inline-block;
}

.section-heading h2::after {
content: '';
position: absolute;
bottom: -5px;
left: 50%;
transform: translateX(-50%);
width: 0;
height: 3px;
background: linear-gradient(90deg, var(--primary-color), #8A2BE2);
animation: gentle-underline 8s ease-in-out infinite;
opacity: 0;
}

@keyframes gentle-underline {
0%, 90% {
  width: 0;
  opacity: 0;
}
15%, 20% {
  width: 100%;
  opacity: 1;
}
25%, 85% {
  width: 100%;
  opacity: 0.7;
}
}

.section-heading p {
font-size: 1.2rem;
color: var(--light-text);
max-width: 600px;
margin: 0 auto;
}

/* Songs Grid */
.songs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.song-card {
  background-color: var(--background-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 15px rgba(0,0,0,0.07);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  border: 2px solid transparent;
  position: relative;
}

.song-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(255,105,180,0.1), rgba(123,104,238,0.1));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
  pointer-events: none;
}

.song-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 15px 25px rgba(0, 0, 0, 0.12);
  border-color: rgba(255,105,180,0.3);
}

.song-card:hover::before {
  opacity: 1;
}

.song-thumbnail {
  width: 100%;
  height: 180px;
  overflow: hidden;
  position: relative;
}

.song-thumbnail::after {
  content: '♪';
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255,255,255,0.7);
  color: var(--primary-color);
  width: 25px;
  height: 25px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: bold;
}

.song-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.song-card:hover .song-thumbnail img {
  transform: scale(1.1);
}

.difficulty-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  letter-spacing: 0.5px;
  margin-top: 1rem;
  position: static;
}

.song-info {
  padding: 1.2rem;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: calc(100% - 180px);
}

.song-title {
  margin: 0 0 0.3rem 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-color);
  letter-spacing: 0.5px;
}

.song-artist {
  margin: 0;
  font-size: 0.9rem;
  color: var(--light-text);
  margin-bottom: auto;
}

.beginner {
  background-color: var(--beginner-bg);
  color: var(--beginner-color);
}

.intermediate {
  background-color: var(--intermediate-bg);
  color: var(--intermediate-color);
}

.advanced {
  background-color: var(--advanced-bg);
  color: var(--advanced-color);
}

/* Audio player styles */
.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(45deg, var(--primary-color), #8A2BE2);
    color: white;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 2;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.song-thumbnail:hover .play-button {
    opacity: 0.95;
    transform: translate(-50%, -50%) scale(1.1);
}

.play-button:hover {
    transform: translate(-50%, -50%) scale(1.2);
    box-shadow: 0 6px 15px rgba(138, 43, 226, 0.3);
}

.play-button i {
    font-size: 18px;
}

/* Remove the music note that appears in top right when we have play button */
.song-card:has(.play-button) .song-thumbnail::after {
    display: none;
}

/* Player state styles */
.song-card.is-playing {
    border-color: var(--primary-color);
    box-shadow: 0 8px 20px rgba(138, 43, 226, 0.2);
    animation: border-flow 3s linear infinite;
}

@keyframes border-flow {
    0% {
        border-color: var(--primary-color);
        box-shadow: 0 8px 15px rgba(138, 43, 226, 0.15);
    }
    25% {
        border-color: #8A2BE2;
        box-shadow: 0 8px 15px rgba(138, 43, 226, 0.25);
    }
    50% {
        border-color: #9370DB;
        box-shadow: 0 8px 15px rgba(138, 43, 226, 0.35);
    }
    75% {
        border-color: #8A2BE2;
        box-shadow: 0 8px 15px rgba(138, 43, 226, 0.25);
    }
    100% {
        border-color: var(--primary-color);
        box-shadow: 0 8px 15px rgba(138, 43, 226, 0.15);
    }
}

.song-card.is-playing .song-title {
    color: var(--primary-color);
}

.song-card.is-playing .play-button {
    opacity: 1;
    background: linear-gradient(45deg, var(--primary-color), #8A2BE2);
}

.song-card.is-paused .play-button {
    opacity: 0.8;
    background: rgba(0, 0, 0, 0.6);
}

.song-card.is-loading .play-button {
    opacity: 1;
    background: rgba(0, 0, 0, 0.6);
}

.song-card.has-error .play-button {
    background: rgba(220, 53, 69, 0.8);
}

.song-card.is-playing .song-thumbnail::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,105,180,0.2), rgba(138,43,226,0.2));
    z-index: 1;
}

/* Global Volume Control Styles */
.global-volume-control {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    background: linear-gradient(45deg, var(--primary-color), #8A2BE2);
    padding: 10px;
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(138, 43, 226, 0.3);
    display: flex;
    align-items: center;
    transform: translateX(80%);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.global-volume-control:hover {
    transform: translateX(0);
}

.volume-control-container {
    display: flex;
    align-items: center;
    width: 150px;
}

.volume-icon {
    color: white;
    font-size: 18px;
    margin-right: 10px;
    cursor: pointer;
}

.volume-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100px;
    height: 6px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 3px;
    outline: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.volume-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Muted state */
.volume-icon.muted {
    color: rgba(255, 255, 255, 0.5);
}

/* Equalizer Animation Styles */
.equalizer-container {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    height: 20px;
    width: 40px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    z-index: 3;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.song-card.is-playing .equalizer-container {
    opacity: 1;
}

.equalizer-bar {
    width: 4px;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 5px rgba(138, 43, 226, 0.6);
    border-radius: 2px;
}

.equalizer-bar:nth-child(1) {
    animation: eq1 0.8s infinite ease-in-out alternate;
    height: 8px;
}

.equalizer-bar:nth-child(2) {
    animation: eq2 0.6s infinite ease-in-out alternate;
    height: 14px;
}

.equalizer-bar:nth-child(3) {
    animation: eq3 1s infinite ease-in-out alternate;
    height: 10px;
}

.equalizer-bar:nth-child(4) {
    animation: eq4 0.7s infinite ease-in-out alternate;
    height: 12px;
}

@keyframes eq1 {
    0% { height: 8px; }
    100% { height: 16px; }
}

@keyframes eq2 {
    0% { height: 14px; }
    100% { height: 5px; }
}

@keyframes eq3 {
    0% { height: 10px; }
    100% { height: 18px; }
}

@keyframes eq4 {
    0% { height: 12px; }
    100% { height: 7px; }
}

/* Add a subtle overlay to make the equalizer more visible */
.song-card.is-playing .song-thumbnail::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(to top, rgba(0,0,0,0.4), transparent);
    z-index: 2;
    pointer-events: none;
}

/* Free user banner message */
.free-user-banner {
    background: linear-gradient(135deg, var(--primary-color), #8A2BE2);
    color: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: var(--spacing-lg);
    text-align: center;
    box-shadow: 0 4px 12px rgba(138, 43, 226, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.free-user-banner h3 {
    margin: 0 0 6px 0;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.free-user-banner p {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
    font-weight: 500;
}

/* Study list warning modal styles */
.song-study-list-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
}

.song-study-list-modal.active {
    display: flex;
}

.song-study-modal-content {
    background: white;
    padding: 30px;
    border-radius: 16px;
    max-width: 480px;
    width: 90%;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    text-align: center;
}

.song-study-modal-content h3 {
    margin: 0 0 16px 0;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-color);
}

.song-study-modal-content p {
    margin: 0 0 24px 0;
    color: var(--light-text);
    line-height: 1.5;
}

.song-study-modal-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.song-study-modal-btn {
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.song-study-modal-btn.cancel {
    background: #f8f9fa;
    color: #6c757d;
}

.song-study-modal-btn.cancel:hover {
    background: #e9ecef;
}

.song-study-modal-btn.confirm {
    background: var(--primary-color);
    color: white;
}

.song-study-modal-btn.confirm:hover {
    background: #d63384;
}



/* Responsive Adjustments - HEADER STYLES REMOVED */
@media (max-width: 1200px) {
  .songs-grid {
      grid-template-columns: repeat(3, 1fr);
  }
  /* REMOVED: .logo-main { font-size: 3.5rem; } */
}

@media (max-width: 768px) {
  /* REMOVED: .logo-main { font-size: 3rem; } */
  /* REMOVED: .logo-tagline { font-size: 1rem; } */

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

@media (max-width: 480px) {
  .songs-grid {
      grid-template-columns: 1fr;
  }
  
  /* REMOVED: .logo-main { font-size: 2.5rem; } */
  /* REMOVED: .logo-tagline { font-size: 0.9rem; } */
}

/* Loading animation */
.loading-songs {
  text-align: center;
  padding: 2rem;
  color: var(--light-text, #999);
  font-style: italic;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { opacity: 0.6; }
  50% { opacity: 1; }
  100% { opacity: 0.6; }
}