/* ============================================
   themes.css – Pages de thèmes (Guide spirituel)
   Design premium identique aux pages Hadith/Dua
   Sections repliables, cartes élégantes, tons verts
============================================ */

/* ----- VARIABLES (cohérence avec style.css) ----- */
:root {
  --primary: #028174;
  --primary-light: #04af9e;
  --primary-dark: #064663;
  --text-dark: #1e2e2e;
  --text-soft: #5a6b6b;
  --bg-light: #f5f7fa;
  --white: #ffffff;
  --shadow-card: 0 8px 24px rgba(0,0,0,0.04);
  --shadow-hover: 0 16px 32px rgba(2,129,116,0.12);
  --radius: 24px;
}

/* ----- PAGE DE THÈME (comme .page) ----- */
.theme-page {
  max-width: 1000px;
  margin: 0 auto;
  padding: 60px 24px;
  font-family: 'Inter', 'Segoe UI', sans-serif;
  color: var(--text-dark);
  background: var(--bg-light);
}

/* ----- EN-TÊTE (comme .surah-header) ----- */
.theme-header {
  text-align: center;
  margin-bottom: 50px;
}

.theme-badge {
  display: inline-block;
  background: rgba(2, 129, 116, 0.08);
  color: var(--primary);
  padding: 8px 22px;
  border-radius: 40px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border: 1px solid rgba(2, 129, 116, 0.2);
  margin-bottom: 20px;
}

.theme-title {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 15px;
  font-family: 'Amiri', serif;
  line-height: 1.2;
}

.theme-subhead {
  font-size: 1.2rem;
  color: var(--text-soft);
  font-weight: 400;
  max-width: 700px;
  margin: 0 auto;
  font-style: italic;
}

/* ----- INTRODUCTION (optionnelle) ----- */
.theme-intro {
  background: rgba(2, 129, 116, 0.04);
  border-radius: 32px;
  padding: 30px;
  margin-bottom: 40px;
  border-left: 6px solid var(--primary);
  position: relative;
}

.theme-intro p {
  font-size: 1.2rem;
  line-height: 1.8;
  color: var(--text-dark);
  margin: 0;
}

.theme-intro i {
  color: var(--primary);
  font-size: 1.8rem;
  float: right;
  opacity: 0.3;
}

/* ----- CARTE PRINCIPALE (toggle) ----- */
.theme-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(2,129,116,0.08);
  transition: 0.3s;
}

.theme-card:hover {
  box-shadow: var(--shadow-hover);
  border-color: rgba(2,129,116,0.2);
  transform: translateY(-2px);
}

/* ----- EN-TÊTE DE CARTE (cliquable) ----- */
.theme-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
}

.theme-card-title {
  display: flex;
  align-items: center;
  gap: 16px;
}

.theme-card-title i {
  font-size: 1.8rem;
  color: var(--primary);
  background: rgba(2,129,116,0.06);
  padding: 12px;
  border-radius: 18px;
}

.theme-card-title h3 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-dark);
}

/* ----- BOUTON TOGGLE ----- */
.toggle-btn {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s;
}

.toggle-btn i {
  transition: transform 0.3s;
}

.toggle-btn.active i {
  transform: rotate(180deg);
}

/* ----- CONTENU DE LA CARTE (repliable) ----- */
.theme-card-content {
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px dashed rgba(2,129,116,0.2);
  line-height: 1.7;
  color: var(--text-dark);
}

.theme-card-content p {
  margin-bottom: 18px;
  font-size: 1.05rem;
}

.theme-card-content ul {
  list-style: none;
  padding: 0;
  margin: 15px 0 5px;
}

.theme-card-content li {
  display: flex;
  gap: 14px;
  margin-bottom: 16px;
  align-items: flex-start;
}

.theme-card-content li i {
  color: var(--primary);
  font-size: 1.2rem;
  min-width: 26px;
  margin-top: 3px;
}

.theme-card-content li strong {
  color: var(--primary-dark);
}

/* ----- TAGS (bienfaits, conseils) ----- */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0 10px;
}

.tag {
  background: rgba(2,129,116,0.06);
  color: var(--primary);
  padding: 6px 18px;
  border-radius: 40px;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid rgba(2,129,116,0.2);
  transition: 0.2s;
}

.tag:hover {
  background: var(--primary);
  color: white;
}

/* ----- VERSET EN LUMIÈRE ----- */
.verse-spotlight {
  background: linear-gradient(145deg, var(--primary-dark), var(--primary));
  color: white;
  border-radius: var(--radius);
  padding: 40px 32px;
  margin: 50px 0 30px;
  text-align: center;
  box-shadow: 0 20px 32px rgba(2,129,116,0.25);
  position: relative;
  overflow: hidden;
}

.verse-spotlight::before {
  content: "﷽";
  font-family: 'Amiri', serif;
  position: absolute;
  bottom: -10px;
  right: 10px;
  font-size: 6rem;
  color: rgba(255,255,255,0.06);
  line-height: 1;
}

.verse-arabic {
  font-size: 2.2rem;
  font-family: 'Amiri', serif;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 20px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.verse-french {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.verse-ref {
  font-size: 0.9rem;
  opacity: 0.9;
  letter-spacing: 1px;
}

/* ----- BOUTON RETOUR (comme .back-btn) ----- */
.theme-footer {
  text-align: center;
  margin-top: 60px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: white;
  color: var(--primary);
  padding: 14px 36px;
  border-radius: 60px;
  text-decoration: none;
  font-weight: 600;
  border: 2px solid var(--primary);
  transition: 0.3s;
  font-size: 1rem;
}

.back-link:hover {
  background: var(--primary);
  color: white;
  gap: 16px;
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(2,129,116,0.2);
}

.back-link i {
  font-size: 1.1rem;
}

/* ----- RESPONSIVE ----- */
@media (max-width: 768px) {
  .theme-page {
    padding: 40px 20px;
  }
  .theme-title {
    font-size: 2.2rem;
  }
  .theme-subhead {
    font-size: 1rem;
  }
  .theme-card {
    padding: 20px;
  }
  .theme-card-title h3 {
    font-size: 1.3rem;
  }
  .theme-card-title i {
    font-size: 1.5rem;
    padding: 10px;
  }
  .verse-arabic {
    font-size: 1.8rem;
  }
  .verse-french {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .theme-title {
    font-size: 1.8rem;
  }
  .theme-card-title {
    gap: 12px;
  }
  .theme-card-title h3 {
    font-size: 1.2rem;
  }
  .toggle-btn {
    font-size: 1.2rem;
  }
}