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

:root {
  --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);
}

* { 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; }

/* ---------- 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: rgba(255, 255, 255, 0.82);
  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; }
@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; }
}
