/* ===========================================================
   Seară Drăguță — stiluri comune
   Folosit de index.html și de toate paginile din pages/
   =========================================================== */

:root,
[data-theme="roz"] {
  --bg1: #fff0f6;
  --bg2: #fce4f0;
  --bg3: #e9efff;
  --pink: #ffb3d1;
  --rose: #ff8fb1;
  --lav: #cbb6ff;
  --mint: #b8ecd9;
  --sun: #ffd479;
  --sky: #a8c8f0;
  --text: #5b4a63;
  --muted: #9a8aa6;
  --deep: #d4568a;
  --card: rgba(255, 255, 255, 0.78);
  --line: rgba(255, 143, 177, 0.18);
  --highlight1: #fff0f6;
  --highlight2: #f1ecff;
}

[data-theme="lavanda"] {
  --bg1: #f3efff;
  --bg2: #ece3ff;
  --bg3: #e6eeff;
  --pink: #c9b8ff;
  --rose: #b39ef0;
  --lav: #a78bfa;
  --mint: #bcd9f5;
  --sun: #f3c9e0;
  --sky: #9bb8f0;
  --text: #4a4463;
  --muted: #8c85a6;
  --deep: #6d4bb0;
  --card: rgba(255, 255, 255, 0.78);
  --line: rgba(167, 139, 250, 0.2);
  --highlight1: #efe8ff;
  --highlight2: #e3edff;
}

[data-theme="menta"] {
  --bg1: #eafff6;
  --bg2: #dff5ea;
  --bg3: #e6f7ff;
  --pink: #a9e8cf;
  --rose: #6fcf9e;
  --lav: #9fd8c9;
  --mint: #7fd6b3;
  --sun: #ffe08a;
  --sky: #9fd0e8;
  --text: #39534a;
  --muted: #7fa393;
  --deep: #1f8a63;
  --card: rgba(255, 255, 255, 0.78);
  --line: rgba(111, 207, 158, 0.22);
  --highlight1: #e3fff3;
  --highlight2: #e6f7ff;
}

[data-theme="noapte"] {
  --bg1: #191225;
  --bg2: #211a30;
  --bg3: #170f22;
  --pink: #c47ea6;
  --rose: #e08fae;
  --lav: #9d85d6;
  --mint: #5fb999;
  --sun: #e0b34f;
  --sky: #5f8fce;
  --text: #efe6f5;
  --muted: #a99bc0;
  --deep: #f2a8cf;
  --card: rgba(40, 30, 55, 0.72);
  --line: rgba(196, 126, 166, 0.25);
  --highlight1: rgba(157, 133, 214, 0.28);
  --highlight2: rgba(224, 143, 174, 0.2);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  min-height: 100vh;
  font-family: 'Quicksand', sans-serif;
  background: linear-gradient(135deg, var(--bg1), var(--bg2), var(--bg3), var(--bg2));
  background-size: 300% 300%;
  background-attachment: fixed;
  animation: gradientShift 22s ease infinite;
  color: var(--text);
  overflow-x: hidden;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ---------- fundal: pete moi ---------- */
.blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}
.blob1 { width: 300px; height: 300px; background: var(--pink); top: -90px; left: -70px; animation: float 14s ease-in-out infinite; }
.blob2 { width: 260px; height: 260px; background: var(--lav); bottom: -70px; right: -50px; animation: float 17s ease-in-out infinite reverse; }
.blob3 { width: 200px; height: 200px; background: var(--mint); top: 45%; left: 72%; animation: float 12s ease-in-out infinite; }

@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(28px, -24px); }
  66% { transform: translate(-18px, 16px); }
}

/* ---------- layout ---------- */
.container {
  position: relative;
  z-index: 2;
  max-width: 560px;
  margin: 0 auto;
  padding: 40px 20px 96px;
}

.header { text-align: center; margin-bottom: 26px; }

.sky {
  font-size: 2rem;
  letter-spacing: 10px;
  animation: softBounce 3.2s ease-in-out infinite;
}
@keyframes softBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

h1 {
  font-family: 'Fredoka', sans-serif;
  font-size: clamp(1.7rem, 6vw, 2.2rem);
  font-weight: 600;
  color: var(--deep);
  margin: 6px 0 4px;
}

.subtitle { font-size: 0.98rem; color: var(--muted); font-weight: 500; }

/* ---------- carduri ---------- */
.card {
  background: var(--card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 24px;
  padding: 22px 20px;
  box-shadow: 0 14px 30px -14px rgba(255, 143, 177, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.7);
  margin-bottom: 16px;
}

.card h2 {
  font-family: 'Fredoka', sans-serif;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--deep);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hint { font-size: 0.82rem; color: var(--muted); font-weight: 500; }

/* ---------- butoane mici, reutilizabile ---------- */
.mini-btn {
  appearance: none;
  border: none;
  background: linear-gradient(135deg, var(--rose), var(--lav));
  color: #fff;
  font-family: 'Quicksand', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.mini-btn:hover { transform: translateY(-2px); }
.mini-btn:active { transform: translateY(0) scale(0.97); }
.mini-btn:disabled { opacity: 0.5; cursor: default; transform: none; }
.mini-btn.ghost {
  background: var(--card);
  color: var(--deep);
  border: 1px solid var(--line);
}

/* ---------- link/buton "acasă" ---------- */
.back-link {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 560px;
  margin: 0 auto;
  padding: 18px 20px 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}
.back-link:hover { color: var(--deep); transform: translateX(-2px); }

/* ---------- navigare de jos ---------- */
.tabbar {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  gap: 4px;
  background: var(--card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 999px;
  padding: 6px;
  box-shadow: 0 12px 28px -10px rgba(255, 143, 177, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.7);
  max-width: calc(100vw - 24px);
  overflow-x: auto;
}

.tabbar a {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 14px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 600;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.tabbar a span { font-size: 1.15rem; }
.tabbar a.active { background: linear-gradient(135deg, #ffe3ef, #efe6ff); color: var(--deep); }
.tabbar a.soon { opacity: 0.45; }

/* ---------- footer ---------- */
.footer { text-align: center; margin-top: 26px; font-size: 0.86rem; color: var(--muted); font-weight: 500; }
.hearts { font-size: 1.2rem; margin-top: 6px; letter-spacing: 6px; animation: pulse 2.4s ease-in-out infinite; }
.build-tag { margin-top: 10px; font-size: 0.62rem; color: var(--muted); opacity: 0.55; letter-spacing: 0.3px; }
@keyframes pulse {
  0%, 100% { opacity: 0.65; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.07); }
}

/* ---------- particule (folosite de particles.js) ---------- */
.pop-heart {
  position: fixed;
  pointer-events: none;
  z-index: 99;
  font-size: 1.1rem;
  animation: rise 1.1s ease-out forwards;
}
@keyframes rise {
  0% { opacity: 1; transform: translate(0, 0) scale(0.6); }
  100% { opacity: 0; transform: translate(var(--dx), -70px) scale(1.15); }
}

.confetti {
  position: fixed;
  top: -30px;
  pointer-events: none;
  z-index: 99;
  font-size: 1.2rem;
  animation: fall linear forwards;
}
@keyframes fall {
  0% { opacity: 1; transform: translateY(0) rotate(0); }
  100% { opacity: 0.9; transform: translateY(105vh) rotate(540deg); }
}

@media (max-width: 420px) {
  .container { padding: 30px 14px 92px; }
  .card { padding: 18px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
