/* =============================================== */
/* --- CONFIGURATION DES THÈMES (UNIVERSEL) --- */
/* =============================================== */

/* =============================================== */
/* 1. THÈME PAR DÉFAUT (Émeraude Royale)         */
/* =============================================== */
:root {
  --gold: #b08d57;
  --gold-bright: #f1d5a9;
  --gold-glow: rgba(176, 141, 87, 0.4);

  --emerald-dark: #05140f;
  --emerald-mid: #0a2d20;

  --card-bg: rgba(13, 34, 27, 0.7);
  --border-light: rgba(176, 141, 87, 0.25);

  --text-main: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.6);
  --transition-speed: 0.5s;

  /* Image spécifique au thème Émeraude */
  --home-bg-image: url("../image/fonds_vert.jpg");
}

/* =============================================== */
/* 2. THÈME VELOURS NOIR & OR                    */
/* =============================================== */
:root.theme-dark,
body.theme-dark,
[data-theme="dark"] {
  --gold: #c5a059;
  --gold-bright: #f9e2af;
  --gold-glow: rgba(197, 160, 89, 0.2);

  --emerald-dark: #000000; /* Noir Pur */
  --emerald-mid: #121212; /* Gris Anthracite */

  --card-bg: rgba(25, 25, 25, 0.9);
  --border-light: rgba(255, 255, 255, 0.1);

  /* Suppression de l'image pour le mode Velours Noir */
  --home-bg-image: none;
}

/* =============================================== */
/* 3. APPLICATION GLOBALE                        */
/* =============================================== */
body {
  background-color: var(--emerald-dark) !important;

  /* Intégration de la texture Dark Matter sur le dégradé dynamique */
  background: 
    url("https://www.transparenttextures.com/patterns/dark-matter.png"),
    radial-gradient(
        circle at center top,
        var(--emerald-mid) 0%,
        var(--emerald-dark) 80%
      )
    no-repeat fixed !important;

  background-size: auto, cover;
  color: var(--text-main);
  margin: 0;
  min-height: 100vh;

  /* Transition fluide sur les propriétés de couleur et fond */
  transition: 
    background var(--transition-speed) ease,
    background-color var(--transition-speed) ease,
    color var(--transition-speed) ease;
}

/* =============================================== */
/* 4. MISE À JOUR DES ÉLÉMENTS COMMUNS           */
/* =============================================== */
/* Correction des cartes pour inclure la daily-reminder-card */
.settings-card,
.quran-card,
.prayer-time-row,
.card,
.preview-box,
.daily-reminder-card {
  background: var(--card-bg) !important;
  border: 1px solid var(--border-light) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 16px;
  transition: 
    transform 0.3s ease, 
    background var(--transition-speed) ease,
    border var(--transition-speed) ease;
}

/* Harmonisation des icônes et titres */
i {
  color: var(--gold);
  filter: drop-shadow(0 0 5px var(--gold-glow));
  transition: color var(--transition-speed) ease;
}

h1,
h2,
h3,
.gold-text,
.setting-label {
  color: var(--gold-bright);
  letter-spacing: 0.5px;
  transition: color var(--transition-speed) ease;
}

/* Boutons et sélecteurs */
select,
.btn-secondary {
  background: rgba(0, 0, 0, 0.3);
  color: var(--gold-bright);
  border: 1px solid var(--border-light) !important;
  border-radius: 8px;
  padding: 8px 12px;
  outline: none;
  transition: border var(--transition-speed) ease;
}

/* =============================================== */
/* 5. SCROLLBAR STYLE PREMIUM                    */
/* =============================================== */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--emerald-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--gold);
  border-radius: 10px;
}
