
/* Import fonts */
@import url('https://fonts.googleapis.com/css2?family=Baloo+Bhai+2:wght@400;500;600;700&family=Noto+Sans+Gujarati:wght@300;400;500;600;700&display=swap');

:root {
  --primary: #6c3483;
  --primary-light: #8e44ad;
  --primary-dark: #4a235a;
  --secondary: #f39c12;
  --secondary-light: #f1c40f;
  --accent: #e74c3c;
  --light: #fff9fd;
  --dark: #2e2e2e;
  --text: #333333;
  --background: linear-gradient(135deg, #fff4e6 0%, #f3e5f5 100%);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: var(--background);
  font-family: 'Noto Sans Gujarati', sans-serif;
  color: var(--text);
  line-height: 1.6;
  animation: fadeIn 1.2s ease;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1rem;
}

.lyrics-container {
  max-width: 900px;
  width: 100%;
  margin: 2rem auto;
  background: #ffffff;
  padding: 3rem;
  border-radius: 20px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.lyrics-container::before {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(248, 225, 255, 0.6) 0%, transparent 70%);
  z-index: -1;
}

.lyrics-container::after {
  content: "";
  position: absolute;
  bottom: -70px;
  left: -70px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(243, 229, 245, 0.5) 0%, transparent 70%);
  z-index: -1;
}

.song-title {
  font-family: 'Baloo Bhai 2', cursive;
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--primary);
  text-align: center;
  margin-bottom: 2.5rem;
  position: relative;
  padding-bottom: 1.5rem;
  line-height: 1.3;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.05);
}

.song-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 4px;
  background: linear-gradient(to right, var(--secondary-light), var(--secondary));
  border-radius: 2px;
}

.lyrics-box {
  background: var(--light);
  padding: 2.5rem;
  border-left: 6px solid var(--primary-light);
  border-radius: 16px;
  font-size: 1.35rem;
  line-height: 2.3rem;
  white-space: pre-wrap;
  box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.03);
  position: relative;
  z-index: 2;
  transition: var(--transition);
}

.lyrics-box:hover {
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.05);
  transform: translateY(-3px);
}

.back-link {
  display: inline-flex;
  align-items: center;
  text-align: center;
  margin: 2.5rem auto 0;
  font-size: 1.2rem;
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  background: rgba(108, 52, 131, 0.1);
  font-weight: 500;
  position: relative;
  overflow: hidden;
}

.back-link::before {
  content: "←";
  margin-right: 0.5rem;
  transition: var(--transition);
}

.back-link:hover {
  color: white;
  background: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(108, 52, 131, 0.3);
}

.back-link:hover::before {
  transform: translateX(-5px);
}

#suggested-links {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px dashed rgba(108, 52, 131, 0.2);
}

#suggested-links h2 {
  font-family: 'Baloo Bhai 2', cursive;
  text-align: center;
  color: var(--primary-dark);
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

#suggested-links h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--secondary);
  border-radius: 2px;
}

#suggested-links div {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 1.5rem;
}

#suggested-links a {
  padding: 0.9rem 1.5rem;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  color: white;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 500;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transition: var(--transition);
  font-size: 1.1rem;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

#suggested-links a::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  opacity: 0;
  transition: var(--transition);
  z-index: -1;
}

#suggested-links a:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

#suggested-links a:hover::before {
  opacity: 1;
}

/* Decorative elements */
.decorative-element {
  position: absolute;
  opacity: 0.1;
  z-index: -1;
}

.decorative-element-1 {
  top: 20px;
  left: 20px;
  font-size: 4rem;
  transform: rotate(-15deg);
}

.decorative-element-2 {
  bottom: 30px;
  right: 30px;
  font-size: 4rem;
  transform: rotate(15deg);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

/* Responsive design */
@media (max-width: 768px) {
  .lyrics-container {
    padding: 2rem 1.5rem;
    margin: 1.5rem auto;
  }
  
  .song-title {
    font-size: 2rem;
    margin-bottom: 2rem;
  }
  
  .lyrics-box {
    padding: 1.8rem;
    font-size: 1.2rem;
    line-height: 2rem;
  }
  
  #suggested-links h2 {
    font-size: 1.5rem;
  }
  
  #suggested-links a {
    padding: 0.8rem 1.2rem;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  body {
    padding: 1rem 0.5rem;
  }
  
  .lyrics-container {
    padding: 1.5rem 1.2rem;
    border-radius: 16px;
  }
  
  .song-title {
    font-size: 1.7rem;
    padding-bottom: 1rem;
  }
  
  .lyrics-box {
    padding: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.9rem;
  }
  
  .back-link {
    font-size: 1.1rem;
    padding: 0.7rem 1.2rem;
  }
  
  #suggested-links h2 {
    font-size: 1.3rem;
  }
  
  #suggested-links div {
    gap: 0.8rem;
  }
  
  #suggested-links a {
    padding: 0.7rem 1rem;
    font-size: 0.95rem;
    border-radius: 10px;
  }
}

/* Media and Info Sections */
.media-section, .info-section {
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--light);
  border-left: 6px solid var(--primary-light);
  border-radius: 16px;
  box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.03);
}

.media-section h3, .info-section h3 {
  font-family: 'Baloo Bhai 2', cursive;
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.media-section h3::after, .info-section h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 3px;
  background: linear-gradient(to right, var(--secondary-light), var(--secondary));
  border-radius: 2px;
}

.media-section audio {
  width: 100%;
  margin-bottom: 0.5rem;
}

.media-section iframe {
  width: 100%;
  max-width: 560px;
  height: 315px;
  border-radius: 12px;
  border: none;
}

.info-section p {
  line-height: 1.8;
  color: var(--text);
}

.note {
  font-size: 0.9rem;
  color: var(--text);
  opacity: 0.7;
  font-style: italic;
}

/* Loading Overlay */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.loading-spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid var(--primary);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Print styles */
@media print {
  body {
    background: white;
    padding: 0;
  }

  .lyrics-container {
    box-shadow: none;
    margin: 0;
    padding: 1rem;
  }

  .back-link, #suggested-links, .media-section, .info-section {
    display: none;
  }
}
