@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700&family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* ══════════════════════════════════════════════════════════════
   ALEXANDRIE — Homepage Theme v2
   ══════════════════════════════════════════════════════════════ */

:root {
  --bg:          #060d09;
  --bg2:         #0c1610;
  --bg3:         #132018;
  --card:        rgba(45, 122, 80, 0.05);
  --card-h:      rgba(45, 122, 80, 0.10);
  --border:      rgba(45, 122, 80, 0.15);
  --border-h:    rgba(45, 122, 80, 0.40);
  --text:        #e4ede7;
  --text2:       #7a9a82;
  --text3:       #3c5044;
  --accent:      #2d7a50;
  --accent2:     #3d9462;
  --accent3:     #5dc489;
  --glow:        rgba(45, 122, 80, 0.22);
}

/* ── Base ────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html, body {
  font-family: 'Outfit', system-ui, sans-serif !important;
  background: var(--bg) !important;
  color: var(--text) !important;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 90vw 55vh at 10% 15%, rgba(45,122,80,0.10) 0%, transparent 65%),
    radial-gradient(ellipse 60vw 45vh at 90% 80%, rgba(30,94,58,0.08) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

#page_wrapper {
  background: transparent !important;
  position: relative;
  z-index: 1;
}

/* ── Titre principal "Bienvenue" ─────────────────────────────── */
#page_wrapper h1,
[class*="greeting"],
[class*="text-5xl"],
[class*="text-4xl"] {
  font-family: 'Cinzel', serif !important;
  font-size: clamp(1.6rem, 4vw, 2.6rem) !important;
  font-weight: 700 !important;
  background: linear-gradient(135deg, #4aad76 0%, #2d7a50 55%, #1e5e3a 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  letter-spacing: 0.04em !important;
}

/* ── Widgets row (CPU / RAM / Disk / Date) ───────────────────── */
#information-widgets {
  background: var(--card) !important;
  border: 1px solid var(--border) !important;
  border-radius: 14px !important;
  padding: 0.6rem 1.2rem !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  margin-bottom: 1.5rem !important;
}

#information-widgets * {
  color: var(--text2) !important;
  font-size: 0.82rem !important;
}

#information-widgets [class*="font-bold"],
#information-widgets [class*="font-medium"] {
  color: var(--text) !important;
  font-weight: 500 !important;
}

/* Date à droite */
#information-widgets [class*="text-right"] *,
#information-widgets [class*="datetime"] * {
  color: var(--text2) !important;
  font-size: 0.82rem !important;
}

/* Barres CPU / RAM */
#information-widgets [class*="progress"],
#information-widgets [role="progressbar"] {
  background: var(--bg3) !important;
  border-radius: 99px !important;
  overflow: hidden;
}
#information-widgets [class*="progress"] > *,
#information-widgets [role="progressbar"] > * {
  background: linear-gradient(90deg, var(--accent), var(--accent2)) !important;
  border-radius: 99px !important;
}

/* ── Labels de section (Apps, Dev) ───────────────────────────── */
#services h2,
#bookmarks h2 {
  font-family: 'Outfit', system-ui, sans-serif !important;
  font-size: 0.68rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase !important;
  color: var(--text3) !important;
  -webkit-text-fill-color: var(--text3) !important;
  background: none !important;
  margin-bottom: 0.6rem !important;
}

/* ── Cards de service ────────────────────────────────────────── */
#services li {
  background: var(--card) !important;
  border: 1px solid var(--border) !important;
  border-radius: 14px !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  box-shadow: 0 2px 20px rgba(0,0,0,0.30) !important;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
  position: relative;
  overflow: hidden;
}

#services li::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(45,122,80,0.07) 0%, transparent 60%);
  pointer-events: none;
  border-radius: 14px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

#services li:hover {
  border-color: var(--border-h) !important;
  box-shadow: 0 8px 36px rgba(0,0,0,0.5), 0 0 24px var(--glow) !important;
  transform: translateY(-2px) !important;
}

#services li:hover::after { opacity: 1; }

/* Titre de l'app */
#services li [class*="font-bold"],
#services li [class*="font-medium"] {
  color: var(--text) !important;
  font-weight: 500 !important;
  font-size: 0.9rem !important;
  -webkit-text-fill-color: var(--text) !important;
}

/* Description */
#services li [class*="text-xs"],
#services li [class*="text-sm"],
#services li p {
  color: var(--text2) !important;
}

/* Ping badge (0 MS) */
#services li [class*="absolute"] {
  background: transparent !important;
  color: var(--text3) !important;
  font-size: 0.65rem !important;
  font-weight: 400 !important;
}

/* Dot de statut */
#services [class*="rounded-full"][class*="bg-green"],
#services [class*="rounded-full"][class*="bg-emerald"] {
  background-color: var(--accent3) !important;
  box-shadow: 0 0 6px var(--accent3) !important;
}
#services [class*="rounded-full"][class*="bg-red"] {
  box-shadow: 0 0 6px rgba(220,60,60,0.5) !important;
}

/* Icônes */
#services li img { filter: drop-shadow(0 0 5px var(--glow)) !important; }
#services li:hover img { filter: drop-shadow(0 0 10px rgba(93,196,137,0.45)) !important; }

/* ── Bookmarks ────────────────────────────────────────────────── */
#bookmarks > div {
  background: var(--card) !important;
  border: 1px solid var(--border) !important;
  border-radius: 14px !important;
  backdrop-filter: blur(10px) !important;
  padding: 0.5rem 0 !important;
}

#bookmarks li {
  border-radius: 8px !important;
  transition: background 0.15s ease !important;
}

#bookmarks li:hover {
  background: var(--card-h) !important;
}

#bookmarks a {
  color: var(--text2) !important;
  font-size: 0.85rem !important;
  transition: color 0.15s ease !important;
  text-decoration: none !important;
}

#bookmarks a:hover { color: var(--accent3) !important; }

#bookmarks img { opacity: 0.75; transition: opacity 0.15s ease !important; }
#bookmarks li:hover img { opacity: 1; }

/* ── Badge version (bas de page) ─────────────────────────────── */
#footer, [class*="version"], body > div > div:last-child > div:last-child {
  opacity: 0.18 !important;
  font-size: 0.65rem !important;
}

/* ── Backgrounds résiduels Tailwind ──────────────────────────── */
[class*="bg-white"],
[class*="bg-gray-100"],
[class*="bg-slate-100"],
[class*="bg-theme-100"],
[class*="bg-theme-200"] {
  background-color: transparent !important;
}

[class*="text-theme-800"],
[class*="text-theme-900"] {
  color: var(--text) !important;
}

/* ── Scrollbar ────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent2); }
