/* --- assets/css/salat.css (Optimisé & Premium - Style Hadiths) --- */

/* ============================================================
   0. RESET & AJUSTEMENTS STRUCTURELS
   ============================================================ */
html,
body {
  margin: 0 !important;
  padding: 0 !important;
  background-color: #05140f;
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.main-container {
  padding-top: 115px !important;
  padding-bottom: 60px !important;
  margin-top: 0 !important;
  position: relative;
  z-index: 1;
}

.glass-panel {
  background: rgba(10, 45, 32, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(176, 141, 87, 0.4);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 800;
  padding: 0 15px !important;
  height: 85px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Style du bouton retour - STYLE HADITHS (Carré Arrondi) */
.glass-panel .floating-back-btn {
  border: 1px solid #b08d57;
  white-space: nowrap;
  padding: 10px 18px;
  gap: 10px;
  font-size: 0.85rem;
  background: rgba(10, 45, 32, 0.6);
  border-radius: 10px; /* Style Hadiths plus carré */
  color: #b08d57;
  text-decoration: none;
  font-weight: 700;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.glass-panel .floating-back-btn:hover {
  background: #b08d57;
  color: #05140f;
  box-shadow: 0 5px 15px rgba(176, 141, 87, 0.4);
}
/* ============================================================
    TITRE DE LA PAGE (TEXTE ARABE & FRANÇAIS)
   ============================================================ */

/* Conteneur global du titre situé sous la barre de navigation */
.page-title-area {
  text-align: center;
  margin: 30px 0 15px; /* Espacement vertical : 30px haut, 15px bas */
  padding: 0 20px;
}

/* Style du texte en Arabe (Doré et Premium) */
.arabic-title {
  font-family: "Amiri", serif;
  font-size: 2.5rem; /* Taille imposante pour la calligraphie */
  color: #b08d57; /* Couleur dorée signature */
  margin-bottom: 8px;
  display: block;
  text-shadow: 0 0 15px rgba(176, 141, 87, 0.4); /* Effet lumineux doré */
  font-weight: 700;
}

/* Style de la signification en Français (Blanc et Gras) */
.french-subtitle {
  font-size: 1.1rem; /* Taille lisible et équilibrée */
  text-transform: uppercase; /* Majuscules pour un aspect Titre */
  letter-spacing: 3px; /* Espacement des lettres pour plus d'élégance */
  color: #ffffff; /* Blanc pur */
  font-weight: 800; /* Force de trait maximale (très gras) */
  display: block;
  opacity: 1;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5); /* Ombre portée pour détacher du fond */
}

/* ============================================================ */

/* ============================================================
   1. HEADER & LOCALISATION
   ============================================================ */
.header-location-selector {
  text-align: center;
  flex-grow: 1;
  padding: 0 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#header-location {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 150px;
}

.method-badge {
  display: inline-block;
  font-size: 0.6rem;
  background: rgba(176, 141, 87, 0.2);
  color: #b08d57;
  padding: 2px 8px;
  border-radius: 5px;
  margin-top: 4px;
  text-transform: uppercase;
}

#sync-location-btn {
  background: rgba(255, 255, 255, 0.05);
  border: none;
  color: #b08d57;
  font-size: 1.2rem;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 10px; /* Style Hadiths */
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: 0.3s;
}

#sync-location-btn:hover {
  background: rgba(176, 141, 87, 0.2);
}

/* ============================================================
   2. CARTE RÉSUMÉ
   ============================================================ */
.prayer-header-summary {
  width: 90%;
  max-width: 450px;
  margin: 0 auto 25px;
  padding: 30px 20px;
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
    url("../image/Fonds_salat.png");
  background-size: cover;
  background-position: center;
  border-radius: 25px;
  border: 1px solid rgba(176, 141, 87, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  text-align: center;
  position: relative;
}

.central-info-block .now-label {
  color: #b08d57;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
}

#current-prayer-name {
  display: block;
  font-size: 3rem;
  font-weight: 900;
  line-height: 1.1;
  margin: 10px 0;
  background: linear-gradient(180deg, #ffffff 40%, #b08d57 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.next-prayer-details {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
  margin-top: 10px;
  font-weight: 500;
}

/* ============================================================
   3. CARROUSEL CIRCULAIRE
   ============================================================ */
.prayer-carousel-wrapper {
  position: relative;
  width: 280px;
  height: 160px;
  margin: 15px auto 0;
  overflow: hidden;
}

.carousel-center-timer {
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  text-align: center;
}

#countdown-timer {
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
}

.prayer-carousel {
  position: absolute;
  top: 20px;
  left: 15px;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  list-style: none;
  padding: 0;
  margin: 0;
  transition: transform 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.prayer-carousel li {
  position: absolute;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.3);
}

.prayer-carousel li.active {
  color: #b08d57;
  font-size: 0.9rem;
}

/* ============================================================
   4. NAVIGATION DATE
   ============================================================ */
.date-navigation-wrapper {
  margin: 20px auto;
  max-width: 480px;
  width: 90%;
}

.date-navigation {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.date-display h3 {
  font-size: 1rem;
  margin: 0;
  color: #fff;
  text-align: center;
}
.date-display p {
  font-size: 0.8rem;
  opacity: 0.6;
  margin: 0;
  text-align: center;
}

.nav-arrow {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(176, 141, 87, 0.2);
  color: #fff;
  width: 38px;
  height: 38px;
  border-radius: 8px; /* Style Hadiths */
  cursor: pointer;
  transition: 0.3s;
}

.nav-arrow:hover {
  background: rgba(176, 141, 87, 0.2);
  color: #b08d57;
}

/* ============================================================
   5. LISTE DES PRIÈRES
   ============================================================ */
.prayer-list-box {
  padding: 0 15px;
  max-width: 450px;
  margin: 0 auto 40px;
}

.list-header {
  display: flex;
  justify-content: space-between;
  padding: 10px 65px 10px 20px;
  font-size: 0.7rem;
  opacity: 0.5;
  text-transform: uppercase;
  color: #fff;
  letter-spacing: 1px;
}

.prayer-full-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.prayer-row {
  flex-grow: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 12px; /* Style Hadiths */
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.prayer-name-wrapper {
  display: flex;
  align-items: center;
  color: #fff;
  font-weight: 600;
}

.prayer-name-wrapper i {
  width: 24px;
  margin-right: 10px;
  color: #b08d57;
  font-size: 1.1rem;
}

.prayer-time-value {
  font-size: 1.2rem;
  font-weight: 800;
  color: #ffffff;
}

.current-prayer {
  background: rgba(176, 141, 87, 0.12) !important;
  border: 1px solid rgba(176, 141, 87, 0.5) !important;
}

.notification-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  width: 45px;
  height: 45px;
  border-radius: 10px; /* Style Hadiths */
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.2);
  transition: 0.3s;
}

.notification-btn.active {
  color: #b08d57;
  background: rgba(176, 141, 87, 0.1);
}

/* ============================================================
   6. RESPONSIVE OPTIMISÉ (AJUSTÉ POUR CENTRAGE PARFAIT)
   ============================================================ */

@media (max-width: 480px) {
  .glass-panel {
    height: 75px;
    padding: 0 10px !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  /* Compactage du bouton retour sur mobile */
  .glass-panel .floating-back-btn {
    padding: 0;
    width: 40px;
    height: 40px;
    justify-content: center;
    flex-shrink: 0;
  }

  .glass-panel .floating-back-btn span {
    display: none; /* Cache le texte "Retour" */
  }

  .glass-panel .floating-back-btn i {
    margin: 0;
    font-size: 1.2rem;
  }

  /* Ajustement Localisation : ramenée vers la gauche pour centrage visuel */
  .header-location-selector {
    margin-right: 15px; /* Pousse légèrement vers le bouton retour */
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  #header-location {
    font-size: 0.9rem;
    max-width: 140px;
    text-align: center;
  }

  .method-badge {
    font-size: 0.55rem;
    padding: 1px 6px;
  }

  /* Ajustement bouton synchro */
  #sync-location-btn {
    width: 38px;
    height: 38px;
    font-size: 1.1rem;
    flex-shrink: 0;
  }

  .main-container {
    padding-top: 100px !important;
  }

  #current-prayer-name {
    font-size: 2.5rem;
  }

  .prayer-header-summary {
    padding: 20px 15px;
    width: 92%;
  }

  .prayer-time-value {
    font-size: 1.1rem;
  }

  .list-header {
    padding: 10px 55px 10px 15px;
  }
}

/* OPTIMISATION TRÈS PETITS ÉCRANS */
@media (max-width: 360px) {
  #header-location {
    max-width: 100px;
  }

  .header-location-selector {
    margin-right: 10px;
  }

  .prayer-carousel-wrapper {
    width: 240px;
  }

  .prayer-carousel {
    width: 210px;
    height: 210px;
  }
}
