/* © 2024-2026 Mehdi TMIMI — Vivace Music (vivace-music.org) */
/* ========================================
   ANDALOUSIE SECTION - STYLES
   Moroccan Andalusian Music Heritage
======================================== */

/* ===== ROOT VARIABLES ===== */
:root {
  --andalousie-primary: #f4d03f; /* Bright Gold */
  --andalousie-secondary: #6b4f2d; /* Deep Brown */
  --andalousie-accent: #8b0000; /* Deep Red */
  --andalousie-dark: #0a0a0f;
  --andalousie-light: #f5f0e8;
  --andalousie-gold-gradient: linear-gradient(135deg, #f4d03f, #daa520, #b8860b);
  --andalousie-brown-gradient: linear-gradient(135deg, #6b4f2d, #5a3f20, #6b4f2d);
  --font-arabic: 'Noto Naskh Arabic', 'Amiri', serif;
  --font-latin: 'Poppins', sans-serif;
}

[data-theme="light"] {
  --andalousie-dark: #f5f0e8;
  --andalousie-light: #1a1a1a;
  /* Override pink accents with gold for Andalousie pages */
  --scrollbar-thumb: #daa520;
  --accent-color: #daa520;
  --shadow-glow: rgba(218, 165, 32, 0.3);
}

/* ===== LANGUAGE TOGGLE ===== */
/* Override theme toggle with Andalusian colors */
.theme-toggle {
  top: 140px !important;
  background: linear-gradient(135deg, #f4d03f, #daa520) !important;
  border: 2px solid rgba(139, 0, 0, 0.3) !important;
  box-shadow: 0 4px 20px rgba(218, 165, 32, 0.4), 0 2px 8px rgba(0, 0, 0, 0.2) !important;
}

.theme-toggle:hover {
  box-shadow: 0 6px 30px rgba(218, 165, 32, 0.6), 0 4px 12px rgba(0, 0, 0, 0.3) !important;
}

.theme-toggle i {
  color: #2a1f14 !important;
}

.language-toggle {
  position: fixed;
  top: 200px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--andalousie-gold-gradient);
  border: 2px solid var(--andalousie-primary);
  box-shadow: 0 4px 20px rgba(201, 162, 39, 0.3);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
  z-index: 9998;
  pointer-events: auto;
}

.language-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(201, 162, 39, 0.5);
}

.language-toggle .lang-label {
  font-size: 16px;
  font-weight: 700;
  color: #0a0a0f;
  display: none;
}

.language-toggle .lang-label[data-lang="ar"] {
  font-family: var(--font-arabic);
  font-size: 18px;
}

@media (max-width: 768px) {
  .language-toggle {
    top: 190px;
    right: 20px;
    width: 45px;
    height: 45px;
  }
}

/* ===== ARABIC TYPOGRAPHY ===== */
html[lang="ar"] body,
html[dir="rtl"] body {
  font-family: var(--font-arabic), var(--font-latin), sans-serif;
}

html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3,
html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3 {
  font-family: var(--font-arabic), serif;
  font-weight: 700;
}

/* ===== HERO SECTION ===== */
.hero-andalousie {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  background: var(--andalousie-dark);
  overflow: hidden;
  padding: 6rem 2rem 4rem;
}

.hero-bg-pattern {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(201, 162, 39, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 30%, rgba(26, 71, 42, 0.1) 0%, transparent 40%),
    radial-gradient(circle at 50% 80%, rgba(139, 0, 0, 0.06) 0%, transparent 40%);
  pointer-events: none;
}

/* Geometric pattern overlay */
.hero-bg-pattern::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0L60 30L30 60L0 30z' fill='none' stroke='%23c9a227' stroke-width='0.5' opacity='0.1'/%3E%3C/svg%3E");
  opacity: 0.3;
}

.hero-content {
  text-align: center;
  z-index: 1;
  max-width: 900px;
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
}

.hero-andalousie .hero-content {
  opacity: 1;
  transform: translateY(0);
}

.logo-andalousie-container {
  position: relative;
  width: 320px;
  height: 300px;
  margin: 0 auto 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* All logo parts start invisible */
.logo-part {
  position: absolute;
  opacity: 0;
  max-width: 100%;
}

/* Waves - background layer - animates immediately on page load */
.logo-waves {
  z-index: 1;
  width: 320px;
  animation: wavesFadeIn 1.2s ease-out forwards;
}

/* Treble clef - middle layer - animates after waves */
.logo-clef {
  z-index: 2;
  width: 160px;
  margin-top: 20px;
  animation: clefSpinIn 1.4s ease-out 0.5s forwards;
}

/* Hat - top layer - animates after clef */
.logo-hat {
  z-index: 3;
  width: 80px;
  top: 40px;
  left: 50%;
  margin-left: -15px;
  animation: hatDropIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 1.2s forwards;
}

/* Animation keyframes */
@keyframes wavesFadeIn {
  0% {
    opacity: 0;
    transform: scale(1.3);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes clefSpinIn {
  0% {
    opacity: 0;
    transform: scale(0.2) rotate(-90deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

@keyframes hatDropIn {
  0% {
    opacity: 0;
    transform: translateY(-100px) rotate(-30deg);
  }
  60% {
    opacity: 1;
    transform: translateY(10px) rotate(5deg);
  }
  80% {
    transform: translateY(-5px) rotate(-3deg);
  }
  100% {
    opacity: 1;
    transform: translateY(0) rotate(0deg);
  }
}

/* Hover effect on completed logo */
.logo-andalousie-container:hover .logo-part {
  filter: drop-shadow(0 10px 40px rgba(201, 162, 39, 0.5));
}

/* Floating animation after logo is complete */
.logo-andalousie-container.complete {
  animation: logoFloat 6s ease-in-out infinite;
}

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

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  color: var(--andalousie-primary);
  margin-bottom: 1rem;
  text-shadow: 0 4px 20px rgba(201, 162, 39, 0.3);
  font-family: var(--font-arabic), serif;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2.5rem;
  line-height: 1.8;
  font-family: var(--font-arabic), serif;
}

.hero-cta {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  padding: 1rem 2.5rem;
  background: var(--andalousie-gold-gradient);
  color: #0a0a0f;
  border: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 20px rgba(201, 162, 39, 0.4);
  font-family: var(--font-arabic), serif;
  pointer-events: auto;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(201, 162, 39, 0.6);
}

.btn-secondary {
  padding: 1rem 2.5rem;
  background: transparent;
  color: var(--andalousie-primary);
  border: 2px solid var(--andalousie-primary);
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-arabic), serif;
  pointer-events: auto;
}

.btn-secondary:hover {
  background: rgba(201, 162, 39, 0.1);
  transform: translateY(-3px);
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  animation: bounce 2s infinite;
  color: var(--andalousie-primary);
  opacity: 0.8;
  font-size: 1.5rem;
}

/* Light theme - darker scroll indicator for visibility */
[data-theme="light"] .scroll-indicator {
  color: #8b6914 !important;
  opacity: 0.9;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}

/* ===== SECTION COMMON STYLES ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--andalousie-primary);
  margin-bottom: 1rem;
  font-family: var(--font-arabic), serif;
}

.section-subtitle {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.decorative-line {
  display: none;
}

/* ===== ABOUT SECTION ===== */
.section-about {
  padding: 6rem 0;
  background: linear-gradient(180deg, var(--andalousie-dark) 0%, rgba(26, 71, 42, 0.1) 100%);
}

/* Override main.css section hiding */
.hero-andalousie,
.section-about,
.section-supervisor,
.section-anthology,
.section-shadharat {
  opacity: 1 !important;
  transform: none !important;
  max-width: none !important;
}

.about-content {
  max-width: 1000px;
  margin: 0 auto;
}

.intro-text {
  font-size: 1.3rem;
  line-height: 2;
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
  margin-bottom: 3rem;
  padding: 2.5rem 3rem;
  background: linear-gradient(135deg, rgba(201, 162, 39, 0.06) 0%, rgba(139, 0, 0, 0.04) 100%);
  border-radius: 20px;
  border: 1px solid rgba(201, 162, 39, 0.25);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.about-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.detail-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(201, 162, 39, 0.25);
  border-radius: 24px;
  padding: 2.5rem 2rem;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.detail-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--andalousie-gold-gradient);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.detail-card:hover::before {
  transform: scaleX(1);
}

.detail-card:hover {
  transform: translateY(-8px);
  background: linear-gradient(135deg, rgba(201, 162, 39, 0.1) 0%, rgba(139, 0, 0, 0.06) 100%);
  border-color: var(--andalousie-primary);
  box-shadow: 0 12px 48px rgba(201, 162, 39, 0.2);
}

.detail-icon {
  width: 80px;
  height: 80px;
  background: var(--andalousie-gold-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
  color: #0a0a0f;
  box-shadow: 0 4px 16px rgba(201, 162, 39, 0.3);
  transition: all 0.4s ease;
}

.detail-card:hover .detail-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 6px 24px rgba(201, 162, 39, 0.5);
}

.detail-card h3 {
  color: var(--andalousie-primary);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.detail-card p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.8;
  font-size: 1rem;
  text-align: justify;
}

/* ===== SUPERVISOR SECTION ===== */
.section-supervisor {
  padding: 6rem 0;
  background: var(--andalousie-dark);
}

.supervisor-content {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 4rem;
  align-items: start;
}

@media (max-width: 900px) {
  .supervisor-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.supervisor-image {
  position: relative;
}

.supervisor-image img {
  width: 100%;
  max-width: 300px;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  position: relative;
  z-index: 1;
}

.image-frame {
  position: absolute;
  inset: -15px;
  border: 3px solid var(--andalousie-primary);
  border-radius: 25px;
  opacity: 0.5;
}

.supervisor-info {
  padding-top: 1rem;
}

.supervisor-name {
  font-size: 2.5rem;
  color: var(--andalousie-primary);
  margin-bottom: 0.5rem;
  font-family: var(--font-arabic), serif;
}

.supervisor-role {
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 2rem;
  font-family: var(--font-arabic), serif;
}

.supervisor-bio p {
  color: rgba(255, 255, 255, 0.85);
  line-height: 2;
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
  text-align: justify;
}

.supervisor-quote {
  font-style: italic;
  padding: 1.5rem 2rem;
  background: rgba(201, 162, 39, 0.1);
  border-right: 4px solid var(--andalousie-primary);
  border-radius: 0 15px 15px 0;
  margin: 2rem 0 !important;
}

html[dir="ltr"] .supervisor-quote {
  border-right: none;
  border-left: 4px solid var(--andalousie-primary);
  border-radius: 15px 0 0 15px;
}

.supervisor-prize {
  color: var(--andalousie-primary, #c9a227);
  font-weight: 600;
  font-style: normal;
}

[data-theme="light"] .supervisor-prize {
  color: #8a6d0b;
}

.supervisor-highlight {
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.7;
  padding: 2rem 2.5rem;
  background: rgba(201, 162, 39, 0.08);
  border: 2px solid rgba(201, 162, 39, 0.4);
  border-radius: 12px;
  margin: 2rem 0 !important;
  text-align: justify;
  animation: subtleGlow 3s ease-in-out infinite;
}

@keyframes subtleGlow {
  0%, 100% {
    box-shadow: 0 0 0 rgba(201, 162, 39, 0);
  }
  50% {
    box-shadow: 0 0 20px rgba(201, 162, 39, 0.3);
  }
}

[data-theme="light"] .supervisor-highlight {
  background: rgba(201, 162, 39, 0.12);
  border-color: rgba(201, 162, 39, 0.5);
}

/* ===== ANTHOLOGY SECTION ===== */
.section-anthology {
  padding: 6rem 0;
  background: linear-gradient(180deg, var(--andalousie-dark) 0%, rgba(139, 0, 0, 0.08) 50%, var(--andalousie-dark) 100%);
}

.coming-soon-banner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  padding: 4rem;
  background: rgba(255, 255, 255, 0.03);
  border: 2px dashed rgba(201, 162, 39, 0.4);
  border-radius: 30px;
  position: relative;
  overflow: hidden;
}

.coming-soon-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(201, 162, 39, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.coming-soon-icon {
  width: 100px;
  height: 100px;
  background: var(--andalousie-gold-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  font-size: 2.5rem;
  color: #0a0a0f;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(201, 162, 39, 0.4); }
  50% { transform: scale(1.05); box-shadow: 0 0 0 20px rgba(201, 162, 39, 0); }
}

.coming-soon-banner h3 {
  font-size: 2.5rem;
  color: var(--andalousie-primary);
  margin-bottom: 1.5rem;
  font-family: var(--font-arabic), serif;
}

.coming-soon-banner > p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.2rem;
  line-height: 1.8;
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.anthology-preview {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.preview-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.preview-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--andalousie-primary);
  font-family: var(--font-latin), sans-serif;
}

.preview-label {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
  font-family: var(--font-arabic), serif;
}

[data-theme="light"] .preview-label {
  color: rgba(0, 0, 0, 0.6);
}

.preview-divider {
  width: 2px;
  height: 60px;
  background: rgba(201, 162, 39, 0.3);
}

/* ===== SHADHARAT SECTION ===== */
.section-shadharat {
  padding: 6rem 0;
  background: var(--andalousie-dark);
}

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

.song-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(201, 162, 39, 0.25);
  border-radius: 24px;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

.song-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--andalousie-gold-gradient);
  transform: scaleX(0);
  transition: transform 0.5s ease;
  z-index: 1;
}

.song-card:hover::before {
  transform: scaleX(1);
}

.song-card:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: var(--andalousie-primary);
  box-shadow: 0 20px 60px rgba(201, 162, 39, 0.25), 0 0 0 1px rgba(201, 162, 39, 0.1);
  background: linear-gradient(135deg, rgba(201, 162, 39, 0.08) 0%, rgba(139, 0, 0, 0.05) 100%);
}

.song-thumbnail {
  height: 180px;
  background: linear-gradient(135deg, #6b4f2d 0%, #5a3f20 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  transition: background 0.4s ease, transform 0.4s ease;
}

.song-card:hover .song-thumbnail {
  background: linear-gradient(135deg, #7b5f3d 0%, #6b4f2d 100%);
}

.song-thumbnail > i {
  font-size: 3rem;
  color: rgba(255, 255, 255, 0.25);
  transition: all 0.4s ease;
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 1;
}

.song-card:hover .song-thumbnail > i {
  color: rgba(255, 255, 255, 0.4);
  transform: scale(1.15);
}

.song-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
}

.instrument-count {
  background: var(--andalousie-gold-gradient);
  color: #0a0a0f;
  padding: 0.4rem 0.9rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: 0 2px 8px rgba(201, 162, 39, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.instrument-count i {
  position: static;
  font-size: 0.85rem;
  color: #0a0a0f;
  transform: none;
}

.song-card:hover .instrument-count {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(201, 162, 39, 0.6);
}

.song-info {
  padding: 1.5rem;
}

.song-info h3 {
  color: var(--andalousie-primary);
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  font-family: var(--font-arabic), serif;
}

.song-title-ar {
  color: rgba(255, 255, 255, 0.6);
  font-size: 1rem;
  margin-bottom: 1rem;
  font-family: var(--font-arabic), serif;
}

.song-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

.song-meta span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.song-meta i {
  color: var(--andalousie-primary);
}

.song-tags {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.tag {
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 500;
}

.tag.genre {
  background: rgba(26, 71, 42, 0.5);
  color: #7cb899;
}

.tag.difficulty {
  background: rgba(201, 162, 39, 0.2);
  color: var(--andalousie-primary);
}

.btn-play {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.9rem 1.5rem;
  background: var(--andalousie-gold-gradient);
  color: #0a0a0f;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(201, 162, 39, 0.3);
  pointer-events: auto;
}

.btn-play:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 24px rgba(201, 162, 39, 0.5);
}

/* ===== FOOTER STYLES ===== */
footer {
  background: rgba(10, 10, 15, 0.95);
  border-top: 1px solid rgba(201, 162, 39, 0.2);
  padding: 2.5rem 0;
}

.footer-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2.5rem;
  direction: ltr;
}

.footer-text {
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.8;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  direction: ltr;
  text-align: left;
}

.footer-text > * {
  white-space: nowrap;
}

.creator-credit {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  direction: rtl;
  padding: 0.4rem 1rem;
  background: rgba(201, 162, 39, 0.06);
  border-radius: 20px;
  border: 1px solid rgba(201, 162, 39, 0.15);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.creator-credit:hover {
  background: rgba(201, 162, 39, 0.1);
  border-color: rgba(201, 162, 39, 0.25);
}

.footer-text span,
.footer-text a {
  display: inline-block;
  unicode-bidi: isolate;
}

.creator-link {
  color: var(--andalousie-primary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
  position: relative;
}

.creator-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--andalousie-gold-gradient);
  transition: width 0.3s ease;
}

.creator-link:hover {
  color: var(--andalousie-secondary);
}

.creator-link:hover::after {
  width: 100%;
}

.footer-social {
  display: flex;
  gap: 0.8rem;
  align-items: center;
}

.footer-social a {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(201, 162, 39, 0.08);
  border: 1px solid rgba(201, 162, 39, 0.25);
  border-radius: 50%;
  color: var(--andalousie-primary);
  font-size: 1.1rem;
  transition: transform 0.4s ease, color 0.4s ease;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  pointer-events: auto;
}

.footer-social a::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--andalousie-gold-gradient);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 50%;
}

.footer-social a i {
  position: relative;
  z-index: 1;
  transition: color 0.3s ease;
}

.footer-social a:hover::before {
  opacity: 1;
}

.footer-social a:hover {
  color: #0a0a0f;
  transform: translateY(-4px) scale(1.1);
  box-shadow: 0 6px 16px rgba(201, 162, 39, 0.4);
  border-color: var(--andalousie-primary);
}

.footer-social a:hover i {
  color: #0a0a0f;
}

/* ===== NAVIGATION ENHANCEMENTS ===== */
.nav-links a {
  position: relative;
  padding: 0.7rem 1.2rem !important;
  font-weight: 600 !important;
  font-size: 0.95rem !important;
  letter-spacing: 0.3px;
  transition: color 0.3s ease, background 0.3s ease !important;
  border-radius: 8px;
  pointer-events: auto;
}

.nav-links a::before {
  background: var(--andalousie-gold-gradient) !important;
  height: 3px !important;
  bottom: -2px !important;
  border-radius: 2px;
}

.nav-links a:hover {
  background: rgba(201, 162, 39, 0.08) !important;
  transform: translateY(-1px);
}

.nav-links a.active {
  background: rgba(201, 162, 39, 0.15) !important;
  color: var(--andalousie-primary) !important;
  box-shadow: 0 2px 8px rgba(201, 162, 39, 0.2);
}

.nav-links a.active::before {
  width: 100% !important;
}

.nav-links li:first-child a {
  background: rgba(201, 162, 39, 0.1);
  border: 1px solid rgba(201, 162, 39, 0.3);
}

.nav-links li:first-child a:hover {
  background: rgba(201, 162, 39, 0.15) !important;
  border-color: rgba(201, 162, 39, 0.4);
}

.nav-links li:first-child a.active {
  background: rgba(201, 162, 39, 0.2) !important;
  border-color: var(--andalousie-primary);
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 768px) {
  .hero-andalousie {
    padding: 5rem 1.5rem 3rem;
  }
  
  .logo-andalousie {
    max-width: 200px;
  }
  
  .hero-cta {
    flex-direction: column;
    align-items: center;
  }
  
  .btn-primary,
  .btn-secondary {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }
  
  .about-details {
    grid-template-columns: 1fr;
  }
  
  .supervisor-image img {
    max-width: 250px;
    margin: 0 auto;
    display: block;
  }
  
  .anthology-preview {
    flex-direction: column;
  }
  
  .preview-divider {
    width: 60px;
    height: 2px;
  }
  
  .songs-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-wrapper {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }
  
  .footer-text {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    font-size: 0.85rem;
  }
  
  .footer-separator {
    display: none !important;
  }
  
  .creator-credit {
    margin-top: 0.5rem;
  }
  
  .footer-social {
    justify-content: center;
  }
}

/* ===== LIGHT THEME ADJUSTMENTS ===== */
[data-theme="light"] .hero-andalousie,
[data-theme="light"] .section-about,
[data-theme="light"] .section-supervisor,
[data-theme="light"] .section-anthology,
[data-theme="light"] .section-shadharat {
  background: #f5f0e8;
}

[data-theme="light"] .hero-subtitle,
[data-theme="light"] .intro-text,
[data-theme="light"] .detail-card p,
[data-theme="light"] .supervisor-bio p,
[data-theme="light"] .coming-soon-banner > p,
[data-theme="light"] .section-subtitle,
[data-theme="light"] .song-meta,
[data-theme="light"] .song-title-ar {
  color: rgba(0, 0, 0, 0.7);
}

[data-theme="light"] .detail-card,
[data-theme="light"] .song-card,
[data-theme="light"] .coming-soon-banner {
  background: rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .song-info h3,
[data-theme="light"] .supervisor-name {
  color: #8b6914;
}

[data-theme="light"] .supervisor-role {
  color: rgba(0, 0, 0, 0.6);
}

[data-theme="light"] footer {
  background: #e8e2d6;
  border-top: 1px solid rgba(139, 105, 20, 0.3);
}

[data-theme="light"] .footer-text {
  color: rgba(0, 0, 0, 0.75);
}

[data-theme="light"] .footer-social a {
  background: rgba(139, 105, 20, 0.08);
  border-color: rgba(139, 105, 20, 0.25);
  color: #8b6914;
}

[data-theme="light"] .footer-social a:hover {
  border-color: #8b6914;
}

[data-theme="light"] .footer-social a:hover i {
  color: #0a0a0f;
}

[data-theme="light"] .creator-link {
  color: #8b6914;
}

/* ===== NAVIGATION ANDALOUSIE ACTIVE STATE ===== */
.nav-links a.active,
.mobile-nav a.active {
  color: var(--andalousie-primary) !important;
}

/* Navigation - always LTR regardless of page direction */
.nav-container,
.nav-container * {
  direction: ltr !important;
  text-align: left;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section-about,
.section-supervisor,
.section-anthology,
.section-shadharat {
  animation: fadeInUp 0.8s ease-out;
}

/* Intersection Observer animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== ANDALOUSIE THEME TOGGLE OVERRIDE ===== */
/* Override pink theme toggle with Andalusian gold/brown */
.hero-andalousie ~ .theme-toggle,
.hero-andalousie .theme-toggle,
body:has(.hero-andalousie) .theme-toggle {
  background: linear-gradient(135deg, #f4d03f, #daa520) !important;
  border: 2px solid rgba(139, 0, 0, 0.3) !important;
  box-shadow: 0 4px 20px rgba(218, 165, 32, 0.4), 0 2px 8px rgba(0, 0, 0, 0.2) !important;
}

body:has(.hero-andalousie) .theme-toggle:hover {
  box-shadow: 0 6px 30px rgba(218, 165, 32, 0.6), 0 4px 12px rgba(0, 0, 0, 0.3) !important;
}

body:has(.hero-andalousie) .theme-toggle i {
  color: #2a1f14 !important;
}

/* ===== IMPROVED LIGHT THEME CONTRAST ===== */
[data-theme="light"] .hero-title,
[data-theme="light"] .section-title {
  background: linear-gradient(135deg, #6b4f2d, #5a3f20) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}

[data-theme="light"] .hero-subtitle,
[data-theme="light"] .intro-text,
[data-theme="light"] .detail-card p,
[data-theme="light"] .supervisor-bio p,
[data-theme="light"] .section-subtitle {
  color: #4a3520 !important;
}

[data-theme="light"] .btn-secondary {
  color: #6b4f2d !important;
  border-color: #6b4f2d !important;
}

[data-theme="light"] .btn-secondary:hover {
  background: rgba(107, 79, 45, 0.1) !important;
}

[data-theme="light"] .detail-card,
[data-theme="light"] .song-card,
[data-theme="light"] .coming-soon-banner {
  background: rgba(107, 79, 45, 0.06) !important;
  border-color: rgba(107, 79, 45, 0.2) !important;
}

[data-theme="light"] .detail-card:hover,
[data-theme="light"] .song-card:hover {
  border-color: rgba(218, 165, 32, 0.5) !important;
  box-shadow: 0 10px 40px rgba(107, 79, 45, 0.15) !important;
}

/* Light theme scrollbar - remove pink */
[data-theme="light"] body:has(.hero-andalousie),
[data-theme="light"] body:has(.hero-andalousie) * {
  scrollbar-color: #daa520 #e8e2d6 !important;
}

[data-theme="light"] body:has(.hero-andalousie)::-webkit-scrollbar-track {
  background: #e8e2d6 !important;
}

[data-theme="light"] body:has(.hero-andalousie)::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #daa520, #b8860b) !important;
  border-color: #e8e2d6 !important;
}

/* Language toggle in light theme */
[data-theme="light"] .language-toggle {
  background: linear-gradient(135deg, #daa520, #b8860b) !important;
  border-color: #8b6914 !important;
}

[data-theme="light"] .language-toggle .lang-label {
  color: #2a1f14 !important;
}

/* ===== GLOBAL SCROLLBAR FOR ANDALOUSIE ===== */
/* Dark theme scrollbar */
html,
body {
  scrollbar-width: thin;
  scrollbar-color: #daa520 #1a1410;
}

::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: #1a1410;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #daa520, #b8860b);
  border-radius: 6px;
  border: 3px solid #1a1410;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #f4d03f, #daa520);
}

/* Light theme scrollbar */
[data-theme="light"] html,
[data-theme="light"] body {
  scrollbar-color: #daa520 #e8e2d6 !important;
}

[data-theme="light"] ::-webkit-scrollbar-track {
  background: #e8e2d6 !important;
}

[data-theme="light"] ::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #daa520, #b8860b) !important;
  border-color: #e8e2d6 !important;
}
