/* ===== CONNAÎTRE ALLAH STYLES - Ma'rifat Allah ===== */

/* ===== HERO SECTION ===== */
.know-allah-hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, #1a3a2e 0%, #2D5F4F 50%, #4A8B73 100%);
  color: white;
  padding: 4rem 2rem;
  overflow: hidden;
  margin-bottom: 4rem;
}

.hero-particles {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: particles-float 20s linear infinite;
}

@keyframes particles-float {
  0% { transform: translateY(0); }
  100% { transform: translateY(-50px); }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-title {
  font-family: 'Amiri', serif;
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  animation: fade-in-down 0.8s ease;
}

.hero-subtitle {
  font-size: 1.4rem;
  opacity: 0.95;
  margin-bottom: 3rem;
  animation: fade-in-up 0.8s ease 0.2s both;
}

.hero-verse-arabic {
  font-family: 'Amiri', serif;
  font-size: 2rem;
  line-height: 1.8;
  margin-bottom: 1rem;
  animation: fade-in 1s ease 0.4s both;
}

.hero-verse-trans {
  font-size: 1.1rem;
  font-style: italic;
  opacity: 0.9;
  margin-bottom: 0.5rem;
  animation: fade-in 1s ease 0.6s both;
}

.hero-verse-ref {
  font-size: 0.95rem;
  opacity: 0.8;
  animation: fade-in 1s ease 0.8s both;
}

/* ===== SECTIONS PRINCIPALES ===== */
.know-allah-main-section {
  max-width: 1400px;
  margin: 0 auto 5rem;
  padding: 0 2rem;
}

.section-header-know {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title-main {
  font-family: 'Amiri', serif;
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.section-subtitle-main {
  font-size: 1.2rem;
  color: var(--text-light);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ===== QUI EST ALLAH - GRILLE =====*/
.who-is-allah-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

.attribute-card {
  background: var(--surface);
  border-radius: 24px;
  padding: 2.5rem;
  border: 2px solid rgba(45, 95, 79, 0.1);
  box-shadow: 0 4px 24px rgba(45, 95, 79, 0.08);
  transition: all 0.4s ease;
}

.attribute-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(45, 95, 79, 0.15);
  border-color: rgba(45, 95, 79, 0.3);
}

.attribute-header {
  margin-bottom: 1.5rem;
}

.attribute-title {
  font-family: 'Amiri', serif;
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.attribute-intro {
  font-size: 1.1rem;
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 2rem;
}

/* ===== VERSETS ===== */
.verses-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.verse-card-know {
  background: linear-gradient(135deg, #1a3a2e, #2D5F4F);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  border: 2px solid rgba(201, 166, 97, 0.2);
  transition: all 0.3s ease;
}

.verse-card-know:hover {
  border-color: rgba(201, 166, 97, 0.5);
  transform: scale(1.02);
}

.verse-card-know.compact {
  padding: 1.5rem;
}

.verse-card-know.meditation {
  background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
}

.verse-arabic-lg {
  font-family: 'Amiri', serif;
  font-size: 1.8rem;
  color: #F0E6C8;
  line-height: 2.2;
  margin-bottom: 1rem;
  direction: rtl;
}

.verse-arabic-md {
  font-family: 'Amiri', serif;
  font-size: 1.5rem;
  color: #F0E6C8;
  line-height: 2;
  margin-bottom: 0.75rem;
  direction: rtl;
}

.verse-transcription-sm {
  font-size: 0.95rem;
  color: rgba(240, 230, 200, 0.7);
  font-style: italic;
  margin-bottom: 1rem;
}

.verse-transcription-xs {
  font-size: 0.85rem;
  color: rgba(240, 230, 200, 0.7);
  font-style: italic;
  margin-bottom: 0.75rem;
}

.verse-translation-main {
  font-size: 1.15rem;
  color: #C9A661;
  font-weight: 500;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.verse-translation-sm {
  font-size: 1rem;
  color: #C9A661;
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.verse-reference-tag {
  font-size: 0.9rem;
  color: rgba(201, 166, 97, 0.8);
  font-weight: 600;
}

/* ===== HADITHS ===== */
.hadiths-container {
  margin-bottom: 2rem;
}

.hadiths-container.compact {
  margin-bottom: 1.5rem;
}

.subsection-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hadith-card {
  background: rgba(45, 95, 79, 0.05);
  border-left: 4px solid var(--accent);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}

.hadith-card-sm {
  background: rgba(45, 95, 79, 0.05);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.hadith-text {
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.hadith-text-sm {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.hadith-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hadith-reference {
  font-size: 0.9rem;
  color: #B8944F;
  font-weight: 600;
}

.hadith-reference-sm {
  display: block;
  font-size: 0.85rem;
  color: #B8944F;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.hadith-context {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.6;
  margin-top: 0.75rem;
  font-style: italic;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(45, 95, 79, 0.1);
}

.hadith-lesson {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
  margin-top: 0.5rem;
  font-style: italic;
}

/* ===== RÉFLEXIONS ===== */
.reflections-box {
  background: linear-gradient(135deg, rgba(201, 166, 97, 0.08), rgba(74, 139, 115, 0.05));
  border-radius: 16px;
  padding: 1.75rem;
}

.reflection-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.reflection-item:last-child {
  margin-bottom: 0;
}

.reflection-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.reflection-item p {
  font-size: 1rem;
  color: var(--text);
  line-height: 1.7;
  margin: 0;
}

/* ===== SECTION CORAN ===== */
.quran-section {
  background: linear-gradient(135deg, rgba(45, 95, 79, 0.03), rgba(201, 166, 97, 0.05));
  padding: 4rem 2rem;
  border-radius: 32px;
}

.quran-content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.quran-card {
  background: var(--surface);
  border-radius: 20px;
  padding: 2rem;
  border: 2px solid rgba(45, 95, 79, 0.1);
  box-shadow: 0 4px 20px rgba(45, 95, 79, 0.08);
  transition: all 0.3s ease;
}

.quran-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(45, 95, 79, 0.12);
}

.quran-card-title {
  font-family: 'Amiri', serif;
  font-size: 1.6rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.quran-card-content {
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

/* ===== SECTION RELATION ===== */
.relationship-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.relationship-card {
  background: var(--surface);
  border-radius: 20px;
  padding: 2rem;
  border: 2px solid rgba(45, 95, 79, 0.1);
  box-shadow: 0 4px 20px rgba(45, 95, 79, 0.08);
  transition: all 0.4s ease;
}

.relationship-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 36px rgba(45, 95, 79, 0.15);
  border-color: rgba(201, 166, 97, 0.4);
}

.rel-header {
  margin-bottom: 1.5rem;
}

.rel-title {
  font-family: 'Amiri', serif;
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.rel-intro {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.7;
}

/* ===== CITATIONS SAVANTS ===== */
.scholars-section {
  background: rgba(45, 95, 79, 0.02);
  padding: 4rem 2rem;
  border-radius: 32px;
}

.scholars-quotes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.75rem;
}

.scholar-quote-card {
  background: var(--surface);
  border-radius: 16px;
  padding: 2rem;
  border-left: 4px solid var(--accent);
  box-shadow: 0 4px 16px rgba(45, 95, 79, 0.08);
  transition: all 0.3s ease;
}

.scholar-quote-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(45, 95, 79, 0.12);
}

.quote-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.quote-text {
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.8;
  font-style: italic;
  margin-bottom: 1.25rem;
  padding-left: 0;
}

.quote-footer {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(45, 95, 79, 0.1);
}

.quote-author {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
}

.quote-source {
  font-size: 0.85rem;
  color: var(--text-light);
  font-style: normal;
}

.quote-context {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
  margin-top: 0.75rem;
  font-style: italic;
}

.scholars-quotes-mini {
  margin-top: 1rem;
}

.scholar-quote-sm {
  background: rgba(45, 95, 79, 0.04);
  border-radius: 10px;
  padding: 1rem;
  font-size: 0.9rem;
  line-height: 1.6;
  font-style: italic;
  color: var(--text);
  margin: 0 0 0.75rem 0;
}

.scholar-quote-sm footer {
  font-size: 0.85rem;
  color: var(--text-light);
  font-style: normal;
  margin-top: 0.5rem;
  display: block;
}

/* ===== SECTION MÉDITATION ===== */
.meditation-section {
  padding: 4rem 2rem;
  background: linear-gradient(135deg, rgba(15, 32, 39, 0.05), rgba(44, 83, 100, 0.08));
  border-radius: 32px;
}

.meditation-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

.meditation-card {
  background: var(--surface);
  border-radius: 24px;
  padding: 2.5rem;
  border: 2px solid rgba(45, 95, 79, 0.1);
  box-shadow: 0 6px 28px rgba(45, 95, 79, 0.1);
  transition: all 0.4s ease;
}

.meditation-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(45, 95, 79, 0.15);
}

.meditation-title {
  font-family: 'Amiri', serif;
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.meditation-reflection {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  background: linear-gradient(135deg, rgba(201, 166, 97, 0.08), rgba(45, 95, 79, 0.05));
  border-radius: 16px;
  padding: 2rem;
  margin-top: 2rem;
}

.reflection-icon-lg {
  font-size: 3rem;
  flex-shrink: 0;
}

.reflection-text {
  font-size: 1.1rem;
  color: var(--text);
  line-height: 1.8;
  margin: 0;
  font-style: italic;
}

/* ===== ANIMATIONS ===== */
[data-animate] {
  opacity: 0;
  transition: all 0.6s ease;
}

[data-animate="fade-up"] {
  transform: translateY(30px);
}

[data-animate="slide-in"] {
  transform: translateX(-30px);
}

[data-animate="zoom-in"] {
  transform: scale(0.95);
}

[data-animate].animated {
  opacity: 1;
  transform: translateY(0) translateX(0) scale(1);
}

@keyframes fade-in-down {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ===== MODE SOMBRE ===== */
[data-theme="dark"] .attribute-card,
[data-theme="dark"] .quran-card,
[data-theme="dark"] .relationship-card,
[data-theme="dark"] .scholar-quote-card,
[data-theme="dark"] .meditation-card {
  background: var(--surface);
  border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .hadith-card,
[data-theme="dark"] .hadith-card-sm {
  background: rgba(255, 255, 255, 0.03);
}

[data-theme="dark"] .reflections-box {
  background: rgba(255, 255, 255, 0.05);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .hero-verse-arabic {
    font-size: 1.5rem;
  }

  .section-title-main {
    font-size: 2rem;
  }

  .attribute-card,
  .quran-card,
  .meditation-card {
    padding: 1.75rem;
  }

  .relationship-grid {
    grid-template-columns: 1fr;
  }

  .scholars-quotes-grid {
    grid-template-columns: 1fr;
  }

  .meditation-reflection {
    flex-direction: column;
    text-align: center;
  }
}