/* =========================================================
   Butonul dark / light  +  culorile pentru LIGHT MODE
   (se încarcă ultimul pe fiecare pagină)
   ========================================================= */

body { transition: background-color .35s ease, color .35s ease; }

.theme-toggle {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 90;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .45);
  background: rgba(0, 0, 0, .55);
  color: #ffffff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
  transition: transform .25s, background .25s, border-color .25s;
}
.theme-toggle:hover { transform: rotate(20deg) scale(1.06); border-color: #4ec3d8; }

@media (max-width: 760px) {
  .theme-toggle { top: 10px; right: 10px; width: 38px; height: 38px; font-size: 18px; }
}

/* ---------------- LIGHT MODE ---------------- */

html[data-theme="light"] {
  --ink: #15232b;           /* text principal */
  --paper: #f6f8f9;         /* fundal */
  --white: var(--ink);
  --black: var(--paper);
  --blue: #1f7f96;
  --blue-light: #1a8aa1;
  --turq: #4ec3d8;
  --menu: #1f7f96;
  color-scheme: light;
}

html[data-theme="light"] body { background: var(--paper); color: var(--ink); }

html[data-theme="light"] .theme-toggle {
  background: rgba(255, 255, 255, .8);
  color: var(--ink);
  border-color: rgba(0, 0, 0, .2);
}

/* logo-ul e alb: îl facem închis la culoare */
html[data-theme="light"] .logo,
html[data-theme="light"] img[src*="logo"] {
  filter: invert(1);
  mix-blend-mode: multiply;   /* fundalul (devenit alb) se topește în pagină */
}

/* meniuri și titluri */
html[data-theme="light"] .site-nav { border-color: rgba(0, 0, 0, .15); }
html[data-theme="light"] .site-nav a { color: var(--blue); }
html[data-theme="light"] .site-nav a:hover,
html[data-theme="light"] .site-nav a.current { color: var(--ink); }
html[data-theme="light"] .section-title { color: var(--blue-light) !important; }
html[data-theme="light"] .back-link { color: var(--blue); }
html[data-theme="light"] .back-link:hover { color: var(--ink); }
html[data-theme="light"] .menu-link:hover,
html[data-theme="light"] .bottom-right-menu a:hover { color: var(--ink); }

/* umbre: în loc de „strălucire” albă, umbră fină */
html[data-theme="light"] .article-image img,
html[data-theme="light"] .blog-image img,
html[data-theme="light"] .img-wrapper,
html[data-theme="light"] .img-top,
html[data-theme="light"] .img-bottom,
html[data-theme="light"] .image-container img,
html[data-theme="light"] .home-photo,
html[data-theme="light"] .photo { box-shadow: 0 6px 22px rgba(0, 0, 0, .18); }

html[data-theme="light"] table { box-shadow: 0 4px 18px rgba(0, 0, 0, .08); background: #ffffff; }

/* text secundar */
html[data-theme="light"] .article-meta,
html[data-theme="light"] .image-caption,
html[data-theme="light"] .intro,
html[data-theme="light"] .trip-level { color: rgba(21, 35, 43, .7); }
html[data-theme="light"] .article-content h3 { border-bottom-color: rgba(0, 0, 0, .12); }

/* blog: separator */
html[data-theme="light"] .blog-post + .blog-post::before {
  background: linear-gradient(90deg, transparent, #1a8aa1 15%, rgba(21,35,43,.6) 50%, #1a8aa1 85%, transparent);
}
html[data-theme="light"] .blog-post + .blog-post::after { background: var(--paper); border-color: #1a8aa1; }

/* contact */
html[data-theme="light"] .form-card {
  background: #ffffff;
  color: var(--ink);
  box-shadow: 0 8px 30px rgba(0, 0, 0, .12);
  border: 1px solid rgba(0, 0, 0, .06);
}
html[data-theme="light"] .btn-submit,
html[data-theme="light"] .btn { color: #ffffff; }
html[data-theme="light"] .blob { opacity: .45; }
html[data-theme="light"] .blob.bot-white { background: #b9d4db; }

/* evenimente */
html[data-theme="light"] .trip { background: #ffffff; border-color: rgba(0, 0, 0, .14); box-shadow: 0 4px 18px rgba(0, 0, 0, .07); }
html[data-theme="light"] .trip:hover,
html[data-theme="light"] .trip.open { box-shadow: 0 6px 26px rgba(31, 127, 150, .22); }
html[data-theme="light"] .trip.open .details-inner { border-top-color: rgba(0, 0, 0, .1); }
html[data-theme="light"] .badge { color: #ffffff; }
html[data-theme="light"] .filter { border-color: rgba(0, 0, 0, .25); }
html[data-theme="light"] .filter.active { color: #ffffff; }
html[data-theme="light"] .facts div { border-color: rgba(0, 0, 0, .18); background: var(--paper); }
html[data-theme="light"] .facts span { color: rgba(21, 35, 43, .6); }
html[data-theme="light"] .modal { background: rgba(21, 35, 43, .55); }
html[data-theme="light"] .modal-card { background: #ffffff; color: var(--ink); }

/* galerie: fereastra mărită rămâne închisă, ca pozele să iasă în evidență */
html[data-theme="light"] .lightbox .lb-caption { color: #4ec3d8; }

/* prima pagină: loc pentru buton în dreapta sus, ca să nu acopere poza */
@media (min-width: 761px) {
  .page { padding-right: max(var(--pad-x, 40px), 76px); }
}
