/* HOLOGRAM STARDUST & SECRET CIRCLE TEMPLATE STYLE */

:root {
  --holo-glow: #ff758c;
  --holo-accent: #00f2fe;
  --holo-gold: #ffd700;
  --dark-bg: radial-gradient(circle at center, #180e29 0%, #080314 100%);
  --card-glass: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(255, 117, 140, 0.4);
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Mali', 'Itim', 'Prompt', sans-serif;
  background: var(--dark-bg);
  color: #ffffff;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* STARDUST BACKGROUND CANVAS */
#stardustCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
}

.hs-wrapper {
  position: relative;
  z-index: 10;
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px 80px;
  text-align: center;
}

/* HOLOGRAM TEXT HEADER */
.hs-header-badge {
  display: inline-block;
  padding: 6px 20px;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border-glow);
  font-size: 0.9rem;
  letter-spacing: 1px;
  color: var(--holo-accent);
  margin-bottom: 20px;
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.3);
}

.hs-hologram-word {
  font-family: 'Mali', 'Itim', sans-serif;
  font-size: 3.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #ff758c, #ff7eb3, #4facfe, #00f2fe);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 30px rgba(255, 117, 140, 0.5);
  margin-bottom: 15px;
  animation: hologramShine 3s infinite alternate;
}

@keyframes hologramShine {
  0% { filter: drop-shadow(0 0 10px rgba(255,117,140,0.4)); }
  100% { filter: drop-shadow(0 0 25px rgba(0,242,254,0.7)); }
}

.hs-recipient-tag {
  font-size: 1.2rem;
  color: #e0e0e0;
  margin-bottom: 40px;
}

/* MAIN HERO IMAGE WITH STARDUST RING */
.hs-main-hero-wrap {
  position: relative;
  width: 220px;
  height: 220px;
  margin: 0 auto 50px;
  border-radius: 50%;
  padding: 6px;
  background: linear-gradient(135deg, var(--holo-glow), var(--holo-accent));
  box-shadow: 0 0 40px rgba(255, 117, 140, 0.5);
}

.hs-main-hero-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #000;
}

/* 3D ROTATING CIRCLE PHOTO RING (6 PHOTOS) */
.hs-circle-section {
  margin: 60px 0;
  perspective: 1000px;
}

.hs-circle-title {
  font-size: 1.3rem;
  color: var(--holo-accent);
  margin-bottom: 10px;
}

.hs-circle-hint {
  font-size: 0.88rem;
  color: #aaa;
  margin-bottom: 40px;
}

.hs-3d-stage {
  width: 240px;
  height: 240px;
  margin: 0 auto;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 1s ease;
}

.hs-3d-ring {
  width: 100%;
  height: 100%;
  position: absolute;
  transform-style: preserve-3d;
  animation: spin3D 20s infinite linear;
}

.hs-3d-ring.bursting .hs-photo-node {
  animation: burstUp 1.2s forwards cubic-bezier(0.25, 1, 0.5, 1) !important;
}

@keyframes spin3D {
  from { transform: rotateY(0deg); }
  to { transform: rotateY(360deg); }
}

.hs-photo-node {
  position: absolute;
  width: 90px;
  height: 90px;
  left: 75px;
  top: 75px;
  border-radius: 50%;
  border: 3px solid #ffffff;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hs-photo-node img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hs-photo-node:hover {
  box-shadow: 0 0 35px var(--holo-glow);
}

@keyframes burstUp {
  0% { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
  100% { opacity: 0; transform: translate3d(0, -350px, 200px) scale(1.8) rotate(360deg); }
}

/* OPEN SECRET LETTER BUTTON */
.hs-open-letter-btn {
  background: linear-gradient(135deg, #ff758c, #ff7eb3);
  color: #fff;
  font-size: 1.15rem;
  font-weight: 600;
  padding: 16px 36px;
  border-radius: 50px;
  border: none;
  box-shadow: 0 10px 30px rgba(255, 117, 140, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 40px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.hs-open-letter-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 15px 40px rgba(255, 117, 140, 0.6);
}

/* SECRET LETTER CARD (UNFOLDING) */
.hs-letter-card {
  background: rgba(255, 255, 255, 0.95);
  color: #222;
  border-radius: 24px;
  padding: 40px 30px;
  margin-top: 40px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  position: relative;
  display: none;
  animation: foldOpen 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  text-align: left;
}

@keyframes foldOpen {
  0% { opacity: 0; transform: scale(0.7) rotateX(-30deg); }
  100% { opacity: 1; transform: scale(1) rotateX(0deg); }
}

.hs-letter-header {
  font-family: 'Mali', 'Itim', sans-serif;
  font-size: 2.2rem;
  color: #d63384;
  margin-bottom: 20px;
  border-bottom: 2px dashed #f8d7da;
  padding-bottom: 10px;
}

.hs-letter-body {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #333;
  white-space: pre-line;
  margin-bottom: 30px;
}

.hs-letter-footer {
  text-align: right;
  font-weight: 600;
  color: #666;
}

/* FLOATING YOUTUBE MUSIC CONTROLLER */
.hs-music-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff0000, #ff758c);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 8px 25px rgba(255,0,0,0.4);
  cursor: pointer;
  z-index: 999;
  border: 2px solid #fff;
}

.hs-music-float.playing i {
  animation: spin 3s linear infinite;
}

@keyframes spin { 100% { transform: rotate(360deg); } }

/* RESPONSIVE */
@media (max-width: 576px) {
  .hs-hologram-word { font-size: 2.6rem; }
  .hs-main-hero-wrap { width: 180px; height: 180px; }
  .hs-3d-stage { width: 200px; height: 200px; }
  .hs-photo-node { width: 75px; height: 75px; left: 62px; top: 62px; }
  .hs-letter-card { padding: 25px 20px; }
}
