/* Light mode (default) - nu e nevoie să pui multe, se aplică CSS-ul existent */

/* Dark mode */
body.dark-mode {
  background: #121212;
  color: #e5e5e5;
  transition: background 0.3s, color 0.3s;
}

/* Exemple comune pentru toate paginile */
body.dark-mode header,
body.dark-mode .menu-header {
  background: #1a1a1a;
  color: #eee;
}

body.dark-mode .card {
  background: #1e1e1e !important;
  color: #e5e5e5 !important;
}

body.dark-mode .btn {
  background: #444 !important;
  color: #fff !important;
}

.theme-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
  margin-left: 15px;
}
.theme-switch input { display: none; }
.theme-switch .slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #ccc;
  border-radius: 34px;
  transition: .4s;
}
.theme-switch .slider:before {
  position: absolute;
  content: "";
  height: 18px; width: 18px;
  left: 4px; bottom: 4px;
  background-color: white;
  border-radius: 50%;
  transition: .4s;
}
.theme-switch input:checked + .slider {
  background-color: #2196F3;
}
.theme-switch input:checked + .slider:before {
  transform: translateX(24px);
}
body.dark-mode .decision-card {
  background: #1e1e1e;
  color: #ddd;
  box-shadow: 0 4px 12px rgba(0,0,0,0.6);
}

body.dark-mode .decision-card h3 {
  color: #fff;
}

body.dark-mode .decision-card .meta {
  color: #aaa;
}

body.dark-mode .decision-card .btn {
  background: #444 !important;
  color: #fff !important;
}

body.dark-mode .decision-card .btn:hover {
  background: #666 !important;
}
/* =========================
   Theme variables (default + dark)
   ========================= */
:root {
  --card-bg: #ffffff;
  --text: #222222;
  --muted: #666666;
  --border: #eeeeee;
  --footer-bg: #001f5c;
  --link-color: #0066cc;
  --shadow: 0 4px 12px rgba(0,0,0,0.10);
}

/* Dark mode override (se activează când body are clasa .dark-mode) */
body.dark-mode {
  --card-bg: #161616;
  --text: #e7e7e7;
  --muted: #b9b9b9;
  --border: rgba(255,255,255,0.06);
  --footer-bg: #071029;
  --link-color: #8fbfff;
  --shadow: 0 6px 20px rgba(0,0,0,0.6);
}

/* =========================
   Specific styles for noutate.php
   ========================= */
.noutate-wrapper {
  background: var(--card-bg);
  color: var(--text);
  border-radius: 12px;
  padding: 24px;
  margin: 120px auto 40px; /* păstrezi spațiul creat pentru header */
  max-width: 900px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: background 0.25s, color 0.25s, box-shadow 0.25s;
}

.noutate-header {
  display: flex;
  align-items: flex-end;
  justify-content: center; /* centrare implicită */
  gap: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
}

/* Title centrat corect (nu se va deplasa din cauza datei) */
.noutate-title {
  font-size: 2rem;
  font-weight: 700;
  margin: 0;
  color: var(--text);
  text-align: center;
  flex: 1 1 auto;
  display: block;
}

/* Data poziționată la dreapta, fără a rupe centrul titlului */
.noutate-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.noutate-date {
  color: var(--muted);
  font-size: 0.95rem;
  white-space: nowrap;
}

/* Conținutul articolului */
.noutate-content {
  color: var(--text);
  line-height: 1.65;
  font-size: 1.05rem;
  text-align: justify;
  margin-top: 18px;
}

/* Poza */
.noutate-img {
  max-width: 100%;
  display: block;
  margin: 28px auto 10px;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}

/* Linkuri din conținut */
.noutate-content a {
  color: var(--link-color);
  text-decoration: underline;
}
.noutate-content a:visited {
  color: var(--link-color); /* evităm movul browserului */
}

/* Footer specific (opțional) */
footer {
  background: var(--footer-bg);
  color: #fff;
  padding: 20px;
  text-align: center;
  margin-top: 30px;
  border-radius: 8px;
}

/* =========================
   Protecție: eliminăm stilul implicit al link-urilor în carduri
   (revenim la culoarea textului și eliminăm sublinierile)
   ========================= */
.card a,
.card a:visited,
.card a:link {
  color: inherit;
  text-decoration: none;
}

/* dacă vrei hover pe card link */
.card a:hover {
  text-decoration: none;
  color: inherit;
}

/* mici ajustări responsive */
@media (max-width: 768px) {
  .noutate-wrapper { margin: 100px 14px 30px; padding: 18px; }
  .noutate-title { font-size: 1.45rem; }
  .noutate-img { margin: 20px 0; }
}
