/* content.css — auto-split from styles.css */
/* ===== EXTRA ANIMATIONS ===== */

/* Cards gently lift */
.update-card, .daily-card, .memory-card, .future-card, .card, .lock-card {
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s;
}
.update-card:hover, .daily-card:hover, .memory-card:hover, .future-card:hover, .card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.28), 0 0 40px rgba(224, 192, 138, 0.08);
}

/* Chapter kicker soft glow pulse */
.chapter-kicker {
  animation: kickerSoft 4s ease-in-out infinite alternate;
}
@keyframes kickerSoft {
  from { opacity: 0.85; text-shadow: 0 0 12px rgba(232, 204, 150, 0.15); }
  to   { opacity: 1; text-shadow: 0 0 22px rgba(232, 204, 150, 0.35); }
}

/* Dividers fade in */
.divider {
  animation: dividerPulse 5s ease-in-out infinite alternate;
}
@keyframes dividerPulse {
  from { opacity: 0.4; }
  to   { opacity: 0.7; }
}

/* Envelopes — slight tilt on hover */
.envelope {
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
}
.envelope:hover {
  transform: translateY(-4px) rotate(-0.6deg);
}
.envelope:nth-child(even):hover {
  transform: translateY(-4px) rotate(0.6deg);
}

/* Mood reply entrance stronger */
.mood-reply.show {
  animation: moodIn 0.55s var(--ease) both;
}
@keyframes moodIn {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to   { opacity: 1; transform: none; }
}

/* Mood button press */
.mood-btn:active {
  transform: scale(0.96) !important;
}
.mood-btn.active .mood-emoji {
  animation: moodPop 0.45s var(--ease) both;
}
@keyframes moodPop {
  0% { transform: scale(0.7); }
  60% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

/* Message bubbles direction-aware */
.msg.from-her {
  transform: translateX(-16px);
}
.msg.from-him {
  transform: translateX(16px);
}
.msg.show {
  transform: none;
}
.msg {
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}

/* Polaroid — soft float when active */
.polaroid.active {
  animation: polaroidSettle 0.6s var(--ease) both;
}
@keyframes polaroidSettle {
  from { opacity: 0; transform: translateX(30px) rotate(4deg) scale(0.94); }
  to   { opacity: 1; transform: translateX(0) rotate(-1deg) scale(1); }
}

/* Vinyl already spins — add soft glow pulse */
.vinyl {
  animation: spin 11s linear infinite, vinylGlow 3s ease-in-out infinite alternate;
}
@keyframes vinylGlow {
  from { box-shadow: 0 16px 48px rgba(0,0,0,0.5), inset 0 0 18px rgba(0,0,0,0.6); }
  to   { box-shadow: 0 16px 48px rgba(0,0,0,0.5), 0 0 28px rgba(224, 192, 138, 0.15), inset 0 0 18px rgba(0,0,0,0.6); }
}

/* Primary / gold buttons shimmer feel via filter */
.lock-btn, .composer-send, .album-button, .hearts-reward-btn, .primary-btn {
  position: relative;
  overflow: hidden;
}
.lock-btn::after, .composer-send::after, .album-button::after, .hearts-reward-btn::after {
  content: "";
  position: absolute;
  top: 0; left: -60%;
  width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  transform: skewX(-20deg);
  pointer-events: none;
  animation: btnShine 4.5s ease-in-out infinite;
}
@keyframes btnShine {
  0%, 70% { left: -60%; }
  100% { left: 120%; }
}

/* Letter overlay paper slide */
.letter-overlay.show .letter-paper {
  animation: paperIn 0.4s var(--ease) both;
}
@keyframes paperIn {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to   { opacity: 1; transform: none; }
}

/* Modal content */
#modal.show #modalContent {
  animation: paperIn 0.4s var(--ease) both;
}

/* Secret heart found flash */
.hidden-heart {
  transition: color 0.25s, transform 0.25s, opacity 0.4s, filter 0.25s;
}
.hidden-heart:hover {
  filter: drop-shadow(0 0 10px rgba(232, 204, 150, 0.6));
}

/* Reveal slightly longer / smoother */
.reveal {
  transition: opacity 1.05s var(--ease), transform 1.05s var(--ease);
}

/* Daily message subtle fade */
.daily-message {
  animation: dailyFade 1.2s var(--ease) both;
}
@keyframes dailyFade {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

/* Progress hearts counter pulse when complete */
.secret-progress {
  transition: color 0.3s, transform 0.3s;
}

@media (prefers-reduced-motion: reduce) {
  .chapter-kicker, .divider, .vinyl, .lock-btn::after, .composer-send::after,
  .album-button::after, .hearts-reward-btn::after, .daily-message, .polaroid.active {
    animation: none !important;
  }
}


/* ===== FOOTER + BACK TO TOP ===== */
.site-footer {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 48px 20px 100px;
  border-top: 1px solid rgba(224, 192, 138, 0.12);
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.15));
}
.footer-milestones {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 18px;
  min-height: 0;
}
.milestone-badge {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(224, 192, 138, 0.3);
  background: rgba(224, 192, 138, 0.08);
  animation: badgeIn 0.6s var(--ease) both;
}
@keyframes badgeIn {
  from { opacity: 0; transform: translateY(8px) scale(0.9); }
  to   { opacity: 1; transform: none; }
}
.footer-stats {
  font-size: 0.88rem;
  color: #d4c4a8;
  letter-spacing: 0.03em;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  align-items: center;
}
.footer-dot { opacity: 0.45; }
.footer-note {
  margin: 12px 0 0;
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.back-top {
  position: fixed;
  right: 18px;
  bottom: 22px;
  z-index: 9000;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(224, 192, 138, 0.35);
  background: linear-gradient(145deg, rgba(40, 36, 28, 0.95), rgba(24, 21, 16, 0.95));
  color: var(--gold);
  font-size: 1.15rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.3s, transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
  margin: 0;
  padding: 0;
  font-family: inherit;
}
.back-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}
.back-top:hover {
  border-color: rgba(224, 192, 138, 0.6);
  box-shadow: 0 10px 28px rgba(0,0,0,0.4), 0 0 20px rgba(224, 192, 138, 0.15);
  transform: translateY(-2px);
}

/* Visit milestone body accents */
body.milestone-3 .chapter-kicker {
  letter-spacing: 0.28em;
}
body.milestone-7 {
  --gold: #e8c888;
}
body.milestone-14 .background {
  opacity: 0.9;
}
body.milestone-14::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(ellipse 50% 40% at 80% 20%, rgba(232, 204, 150, 0.06), transparent 60%);
}

/* ===== HOW I FEEL ===== */
.feel-grid {
  width: min(560px, 100%);
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 28px;
  text-align: left;
}
.feel-card {
  padding: 18px 18px 16px;
  border-radius: 18px;
  border: 1px solid rgba(224, 192, 138, 0.25);
  background: linear-gradient(155deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
  box-shadow: 0 12px 32px rgba(0,0,0,0.18);
}
.feel-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.feel-card p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.7;
  color: #f0e8d8;
  max-width: none;
  text-align: left;
}
.feel-closing {
  margin-top: 28px;
  max-width: 480px;
  color: #e8dfd0;
  line-height: 1.7;
  font-size: 1rem;
}
.feel-sign {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--muted);
  margin-top: 12px;
  font-size: 1.05rem;
}
@media (max-width: 700px) {
  .feel-grid { gap: 12px; margin-top: 22px; }
  .feel-card { padding: 16px 14px; }
  .feel-card p { font-size: 0.95rem; }
}


/* ===== WAIT CHAPTER ===== */
.wait-card {
  width: min(520px, 100%);
  margin-top: 24px;
  padding: 28px 24px;
  border-radius: 22px;
  border: 1px solid rgba(224, 192, 138, 0.28);
  background: linear-gradient(155deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
  box-shadow: 0 16px 40px rgba(0,0,0,0.2);
  text-align: left;
}
.wait-card p {
  margin: 0 0 16px;
  font-size: 1.02rem;
  line-height: 1.75;
  color: #f0e8d8;
  max-width: none;
  text-align: left;
}
.wait-emphasis {
  font-family: 'Playfair Display', Georgia, serif !important;
  font-size: 1.25rem !important;
  color: #fffaf0 !important;
  text-align: center !important;
  margin: 24px 0 8px !important;
  line-height: 1.5 !important;
}
.wait-sign {
  font-family: 'Playfair Display', Georgia, serif !important;
  color: var(--muted) !important;
  text-align: center !important;
  margin: 18px 0 0 !important;
  font-size: 1.05rem !important;
}
@media (max-width: 700px) {
  .wait-card { padding: 22px 16px; }
  .wait-card p { font-size: 0.98rem; }
  .wait-emphasis { font-size: 1.15rem !important; }
}


/* ===== FROG + PANDA ===== */
.duo-mascots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 8px 0 18px;
  user-select: none;
}
.duo-frog,
.duo-panda {
  font-size: 2rem;
  line-height: 1;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.25));
  display: inline-block;
}
.duo-heart {
  font-size: 1rem;
  opacity: 0.9;
  animation: duoPulse 2.4s ease-in-out infinite;
}
.duo-frog {
  animation: duoBob 3s ease-in-out infinite;
}
.duo-panda {
  animation: duoBob 3s ease-in-out 0.4s infinite;
}
@keyframes duoBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
@keyframes duoPulse {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.12); opacity: 1; }
}
.duo-mascots--sm {
  margin: 12px 0 6px;
  gap: 8px;
}
.duo-mascots--sm .duo-frog,
.duo-mascots--sm .duo-panda {
  font-size: 1.45rem;
}
.duo-mascots--sm .duo-heart {
  font-size: 0.85rem;
}
@media (max-width: 700px) {
  .duo-frog,
  .duo-panda,
  .duo-heart {
    animation: none !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  .duo-frog, .duo-panda, .duo-heart { animation: none !important; }
}


/* ===== ANIME SCENE (SVG) ===== */
.anime-scene {
  position: relative;
  width: min(360px, 92vw);
  margin: 6px auto 14px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(224, 192, 138, 0.28);
  box-shadow:
    0 16px 40px rgba(0,0,0,0.35),
    0 0 40px rgba(232, 204, 150, 0.08);
  background: #1a1520;
}
.anime-scene-img {
  display: block;
  width: 100%;
  height: auto;
  animation: sceneFloat 4s ease-in-out infinite;
}
@keyframes sceneFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
.anime-scene-sparkles {
  pointer-events: none;
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(245,230,192,0.35) 0 1px, transparent 2px),
    radial-gradient(circle at 75% 25%, rgba(245,230,192,0.3) 0 1px, transparent 2px),
    radial-gradient(circle at 60% 70%, rgba(245,230,192,0.25) 0 1px, transparent 2px);
  animation: sparkleTwinkle 2.5s ease-in-out infinite alternate;
}
@keyframes sparkleTwinkle {
  from { opacity: 0.4; }
  to { opacity: 1; }
}

/* animate SVG groups if same-origin */
.anime-scene-img {
  /* hop via filter pulse */
  filter: drop-shadow(0 8px 16px rgba(0,0,0,0.3));
}

@media (max-width: 700px) {
  .intro-speedlines,
  .intro-anime-flash {
    animation: none !important;
    opacity: 0.25;
  }
  .intro-sakura { display: none !important; }
  .duo-mascots--live .duo-frog,
  .duo-mascots--live .duo-panda,
  .duo-mascots--live .duo-heart {
    animation: none !important;
  }
  .anime-scene-img {
    animation: none !important;
  }
  .anime-scene {
    width: min(300px, 90vw);
  }
}


.anime-scene svg.anime-scene-img {
  display: block;
  width: 100%;
  height: auto;
}


/* ===== VISUAL PASS: cards + reveal + buttons ===== */
:root {
  --card-radius: 20px;
  --card-border: 1px solid rgba(224, 192, 138, 0.28);
  --card-bg: linear-gradient(155deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
  --card-shadow: 0 16px 40px rgba(0,0,0,0.22);
  --btn-gold: linear-gradient(135deg, #e8c070 0%, #d4a040 50%, #c49030 100%);
  --btn-shadow: 0 10px 28px rgba(196,146,58,0.35), 0 4px 12px rgba(0,0,0,0.15);
}

/* 1 — unified cards */
.update-card,
.daily-card,
.memory-card,
.future-card,
.card,
.feel-card,
.wait-card,
.game-block,
.message-composer,
.q-draw,
.q-card,
.mood-reply,
.envelope,
.return-card,
.letter-paper,
#modalContent,
.hearts-reward-card,
.finds-reward-card {
  border-radius: var(--card-radius) !important;
  border: var(--card-border) !important;
  background: var(--card-bg) !important;
  box-shadow: var(--card-shadow) !important;
}

.envelope {
  background: linear-gradient(155deg, rgba(255,255,255,0.07), rgba(255,255,255,0.025)) !important;
}
.q-card,
.feel-card {
  padding: 16px 18px !important;
}
.game-block,
.message-composer,
.daily-card,
.wait-card {
  padding: 22px 20px !important;
}

/* 5 — softer reveal */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 1.15s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1.15s cubic-bezier(0.22, 1, 0.36, 1) !important;
}
.reveal.show {
  opacity: 1;
  transform: none;
}

/* 10 — unified gold pill buttons */
.primary-btn,
.question-btn,
.memory-btn,
.album-button,
.game-btn:not(.game-btn--ghost),
.composer-send,
.hearts-reward-btn,
.finds-reward-btn,
.return-close,
.letter-close,
#modal button,
#lock .lock-btn,
#lock button.lock-btn {
  border: none !important;
  border-radius: 999px !important;
  padding: 13px 28px !important;
  color: #fff !important;
  cursor: pointer !important;
  font-family: inherit !important;
  font-weight: 600 !important;
  font-size: 0.95rem !important;
  letter-spacing: 0.02em !important;
  background: var(--btn-gold) !important;
  background-color: #d4a040 !important;
  box-shadow: var(--btn-shadow) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}

.primary-btn:hover,
.question-btn:hover,
.memory-btn:hover,
.album-button:hover,
.game-btn:not(.game-btn--ghost):hover,
.composer-send:hover,
.hearts-reward-btn:hover,
.finds-reward-btn:hover,
.return-close:hover,
#lock .lock-btn:hover {
  transform: translateY(-2px) !important;
  filter: brightness(1.06);
  box-shadow: 0 14px 34px rgba(196,146,58,0.42), 0 6px 14px rgba(0,0,0,0.18) !important;
}

.game-btn--ghost {
  border-radius: 999px !important;
  border: 1px solid rgba(224, 192, 138, 0.4) !important;
  background: transparent !important;
  color: var(--gold) !important;
  box-shadow: none !important;
  font-weight: 600 !important;
  padding: 12px 26px !important;
}

.who-btn {
  border-radius: 999px !important;
}

.round-btn {
  border-radius: 50% !important;
  border: 1px solid rgba(224, 192, 138, 0.35) !important;
  background: rgba(255,255,255,0.05) !important;
  color: #f5efe3 !important;
  box-shadow: none !important;
}

@media (max-width: 700px) {
  .reveal {
    transition:
      opacity 0.7s ease,
      transform 0.7s ease !important;
  }
  .reveal:not(.show) {
    transform: translateY(14px);
  }
  .primary-btn:hover,
  .game-btn:hover,
  .album-button:hover,
  .composer-send:hover {
    transform: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}




/* sobotni update — nowa koperta */
.envelope--new {
  position: relative;
  box-shadow: 0 0 0 1px rgba(232, 204, 150, 0.35), 0 12px 28px rgba(0,0,0,0.22);
}
.envelope--new::after {
  content: "nowe";
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #1a1410;
  background: linear-gradient(135deg, #e8c070, #d4a040);
  font-weight: 700;
}
.update-card--fresh {
  border: 1px solid rgba(232, 204, 150, 0.28);
  box-shadow: 0 12px 36px rgba(0,0,0,0.2);
}


/* wyraźnie nowe w "Ode mnie" */
.wait-new {
  margin: 18px 0;
  padding: 16px 16px 14px;
  border-radius: 16px;
  border: 1px solid rgba(232, 204, 150, 0.32);
  background: linear-gradient(145deg, rgba(232, 204, 150, 0.08), rgba(255, 255, 255, 0.03));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.wait-new-label {
  display: inline-block;
  margin-bottom: 10px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #1a1410;
  background: linear-gradient(135deg, #e8c070, #d4a040);
}
.wait-new p {
  margin: 0;
}


.wait-card--new {
  margin-bottom: 16px;
  border: 1px solid rgba(232, 204, 150, 0.35);
  background: linear-gradient(155deg, rgba(232, 204, 150, 0.1), rgba(20, 16, 12, 0.35));
}
.wait-card--new .wait-new-label {
  display: inline-block;
  margin-bottom: 12px;
}
.wait-card--new p:last-child {
  margin-bottom: 0;
}


.update-card {
  text-align: left;
}
.update-card .update-date,
.update-card .update-title {
  text-align: center;
}
.update-card > p {
  text-align: center;
}
.update-list {
  list-style: none;
  margin: 14px 0 16px;
  padding: 0;
  text-align: left;
  color: var(--text, #f2ebe0);
  line-height: 1.5;
}
.update-list li {
  position: relative;
  margin: 0 0 12px;
  padding: 10px 12px 10px 28px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.92rem;
}
.update-list li:last-child {
  margin-bottom: 0;
}
.update-list li::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 1.05em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(232, 204, 150, 0.9);
  box-shadow: 0 0 8px rgba(232, 204, 150, 0.45);
}
