/* 2025 themed styles (kept minimal to complement Tailwind) */

.pill { display: inline-flex; align-items: center; padding: 0.25rem 0.75rem; border-radius: 9999px; background: rgba(255,255,255,0.10); color: rgba(255,255,255,0.90); font-size: 0.875rem; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,0.10); transition: background .2s ease, transform .2s ease; }
.pill:hover { background: rgba(255,255,255,0.20); transform: translateY(-1px); }

.glow-card {
  position: relative;
  background: linear-gradient(135deg, rgba(217,70,239,0.25), rgba(59,130,246,0.15));
  box-shadow: 0 10px 30px rgba(217,70,239,0.15), inset 0 0 0 1px rgba(255,255,255,0.08);
}

.card {
  flex: 0 0 auto;
  width: 260px;
  height: 360px;
  border-radius: 1rem;
  overflow: hidden;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  transform: translateZ(0);
  transition: transform .3s ease, box-shadow .3s ease;
}
.card img { width: 100%; height: 100%; object-fit: cover; }
.card:hover { transform: translateY(-6px) scale(1.02); box-shadow: 0 20px 40px rgba(0,0,0,.35); }

.thumb { display: grid; grid-template-columns: 96px 1fr; gap: .75rem; padding: .5rem; border-radius: .75rem; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); cursor: pointer; }
.thumb:hover { background: rgba(255,255,255,0.08); }
.thumb img { width: 96px; height: 64px; object-fit: cover; border-radius: .5rem; }
.thumb-title { font-size: .9rem; color: rgba(255,255,255,.85); align-self: center; }

/* Fallback for Tailwind ring utility used by JS highlight */
.ring-2 { box-shadow: 0 0 0 2px rgba(255,255,255,0.35); }
.ring-fuchsia-400 { box-shadow: 0 0 0 2px rgba(217,70,239,1) !important; border-color: rgba(217,70,239,0.6) !important; }

.section-title { font-size: 1.25rem; letter-spacing: .06em; color: rgba(255,255,255,.85); margin-bottom: 1rem; border-left: 4px solid rgb(217,70,239); padding-left: .75rem; }

/* Navbar minor button */
.nav-btn { padding: .35rem .7rem; border-radius: .5rem; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); color: rgba(255,255,255,0.9); }
.nav-btn:hover { background: rgba(255,255,255,0.12); }

/* Timeline */
.timeline { position: relative; padding-left: 1rem; border-left: 2px solid rgba(255,255,255,0.12); }
.milestone { position: relative; margin: 1rem 0 1.5rem 0; opacity: .9; }
.milestone .dot { position: absolute; left: -9px; top: 6px; width: 14px; height: 14px; border-radius: 999px; background: #999; box-shadow: 0 0 0 3px rgba(217,70,239,0.15); }
.milestone .content { padding: .25rem .75rem; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: .5rem; }
.milestone h4 { font-weight: 700; margin-bottom: .25rem; }
.milestone.current .dot { background: rgb(217,70,239); }
.milestone.past { opacity: .45; }
.milestone.future { opacity: .25; filter: grayscale(0.6); }

/* Wishes grid */
.wishes-grid { column-count: 2; column-gap: 1rem; }
@media (min-width: 768px) { .wishes-grid { column-count: 3; } }
.wish { break-inside: avoid; margin: .5rem 0; padding: .75rem 1rem; border-radius: .75rem; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); }

/* Facts grid */
.facts-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 768px) { .facts-grid { grid-template-columns: repeat(3, 1fr); } }
.fact-card { padding: 1rem; border-radius: .9rem; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04); transition: transform .2s ease, box-shadow .2s ease; }
.fact-card:hover { transform: translateY(-4px); box-shadow: 0 12px 24px rgba(0,0,0,.35); }
.fact-card h3 { font-weight: 700; margin: .25rem 0 .35rem; }
.fact-card p { color: rgba(255,255,255,0.8); font-size: .95rem; }
.fact-icon { font-size: 1.4rem; }
.badge-group { margin-top: .5rem; display: flex; gap: .4rem; flex-wrap: wrap; }
.badge { font-size: .75rem; padding: .2rem .5rem; border-radius: .5rem; border: 1px solid rgba(217,70,239,0.35); background: rgba(217,70,239,0.12); color: rgba(255,255,255,0.9); }

/* Petal background (simple falling petals) */
.petal-bg { position: absolute; inset: 0; overflow: hidden; }
.petal { position: absolute; width: 10px; height: 14px; background: radial-gradient(circle at 30% 30%, #fff, #f0a, #0000); border-radius: 60% 40% 60% 40%; opacity: .6; filter: blur(.2px); animation: fall 12s linear infinite; }
@keyframes fall { 0% { transform: translateY(-10%) rotate(0deg); } 100% { transform: translateY(110vh) rotate(180deg); } }

/* Screen reader only */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Floating hongbao button */
.hongbao-btn { position: fixed; right: 20px; bottom: 20px; z-index: 60; padding: .6rem .9rem; border-radius: .8rem; background: linear-gradient(135deg,#ff2757,#ff7a18); color: #fff; border: none; box-shadow: 0 10px 20px rgba(255,39,87,.35); font-weight: 700; }
.hongbao-btn:hover { filter: brightness(1.05); transform: translateY(-1px); }

/* Modal base */
.modal.hidden { display: none; }
.modal { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.55); }
.modal-body { position: relative; width: min(560px, 92vw); border-radius: 1rem; overflow: hidden; }
.modal-close { position: absolute; top: .5rem; right: .5rem; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); color: #fff; border-radius: .5rem; padding: .25rem .5rem; z-index: 2; }

/* Hongbao visual */
.hongbao { position: relative; background: linear-gradient(160deg,#7b1f1f,#b11f1f); padding: 2.5rem 1.25rem 1.5rem; border-radius: 1rem; box-shadow: inset 0 0 0 2px rgba(255,215,0,.25), 0 20px 40px rgba(0,0,0,.45); }
.hb-lid { position: absolute; top: 0; left: 0; right: 0; height: 54px; background: linear-gradient(160deg,#b84d12,#e39b37); border-bottom-left-radius: 100% 80px; border-bottom-right-radius: 100% 80px; box-shadow: 0 12px 18px rgba(0,0,0,.25); transform-origin: top center; transition: transform .5s ease; }
.hongbao.open .hb-lid { transform: rotateX(65deg); }
.hb-pocket { position: relative; background: linear-gradient(180deg,rgba(255,255,255,.05),rgba(0,0,0,.1)); border: 1px solid rgba(255,215,0,.35); border-radius: .9rem; padding: 1rem; color: #ffefd6; }
.hb-pocket h3 { font-size: 1.2rem; margin: .25rem 0; font-weight: 800; color: #ffd447; }
.hb-sub { color: #ffead1; opacity: .9; margin-bottom: .5rem; }
.hb-open { width: 100%; padding: .6rem; border-radius: .7rem; border: none; background: linear-gradient(135deg,#ffd447,#ff9a1f); color: #7b1f1f; font-weight: 800; letter-spacing: .06em; box-shadow: 0 10px 18px rgba(255,154,31,.35); }
.hb-content { text-align: center; }
.hb-amount { font-size: 2rem; font-weight: 900; color: #ffd447; text-shadow: 0 2px 10px rgba(255,212,71,.45); }
.hb-bless { margin: .4rem 0 .8rem; color: #ffefd6; }
.hb-receive { padding: .45rem .9rem; border-radius: .6rem; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); color: #fff; }

/* Confetti layer */
.confetti-layer { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.confetti { position: absolute; width: 8px; height: 12px; opacity: .9; will-change: transform; animation: confettiFall linear forwards; }
@keyframes confettiFall { to { transform: translateY(110%) rotate(360deg); } }

/* Portrait video container: 9:16 aspect ratio */
.video-portrait { position: relative; width: 100%; max-width: 450px; margin-inline: auto; }
.video-portrait::before { content: ""; display: block; padding-top: calc(16 / 9 * 100%); }
.video-portrait > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 0.75rem; }

/* Sound prompt bar */
.sound-prompt { position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; display: flex; align-items: center; justify-content: center; gap: .75rem; padding: .6rem .9rem calc(.6rem + env(safe-area-inset-bottom)); background: rgba(0,0,0,.7); backdrop-filter: blur(8px); border-top: 1px solid rgba(255,255,255,.15); }
.sound-prompt .sp-text { color: rgba(255,255,255,.9); font-weight: 600; font-size: .95rem; }
.sound-btn { padding: .45rem .9rem; border-radius: .6rem; background: linear-gradient(135deg,#ffd447,#ff9a1f); color: #7b1f1f; border: none; font-weight: 800; letter-spacing: .04em; box-shadow: 0 8px 16px rgba(255,154,31,.35); }
.hidden { display: none !important; }

/* Top sound bar (playful) */
.sound-topbar { position: fixed; top: 0; left: 0; right: 0; z-index: 80; display: flex; align-items: center; justify-content: center; gap: .5rem; padding: calc(.45rem + env(safe-area-inset-top)) .9rem .45rem; background: linear-gradient(90deg, rgba(217,70,239,.95), rgba(59,130,246,.95)); color: #0b0b0b; font-weight: 800; letter-spacing: .02em; border-bottom: 1px solid rgba(255,255,255,.2); box-shadow: 0 6px 12px rgba(0,0,0,.25); cursor: pointer; }
.sound-topbar:hover { filter: brightness(1.05); }
.sound-topbar:active { transform: translateY(1px); }
