/* ==============================================================================
   whynotlisten - Luxury Vintage Letter, Tactile Envelope & Audio Player Aesthetics
   ============================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Alex+Brush&family=Caveat:wght@400;500;600;700&family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500;1,600&family=Inter:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --bg-deep: #0a0b0e;
  --bg-card: #12141a;
  --accent-gold: #c5a059;
  --accent-amber: #d97706;
  --paper-cream: #faf6ee;
  --paper-edge: #eae2d1;
  --paper-subtle: #f4eee2;
  --ink-primary: #231f1c;
  --ink-muted: #5e574f;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
  color: #1e293b;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.font-serif-letter {
  font-family: 'Cormorant Garamond', Georgia, serif;
}

.font-calligraphy {
  font-family: 'Alex Brush', cursive;
}

.font-handwriting {
  font-family: 'Caveat', cursive;
}

/* ==============================================================================
   CANVAS BACKGROUNDS
   ============================================================================== */
/* Modern Dreamy Mesh for Split Card Gate */
.bg-dreamy-mesh {
  background: #c3b9ea;
  background-image: 
    radial-gradient(at 10% 10%, hsla(38, 92%, 78%, 1) 0px, transparent 55%),
    radial-gradient(at 50% 15%, hsla(280, 85%, 78%, 0.9) 0px, transparent 55%),
    radial-gradient(at 90% 10%, hsla(210, 90%, 78%, 0.9) 0px, transparent 55%),
    radial-gradient(at 10% 90%, hsla(330, 85%, 82%, 0.85) 0px, transparent 55%),
    radial-gradient(at 90% 90%, hsla(220, 92%, 75%, 0.9) 0px, transparent 55%);
  background-attachment: fixed;
  background-size: cover;
  min-height: 100vh;
}

/* Intimate Warm Sanctuary for Unlocked Letter Reading */
.bg-letter-sanctuary {
  background-color: #0b0c10;
  background-image: 
    radial-gradient(circle at 50% 15%, rgba(197, 160, 89, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 15% 70%, rgba(217, 119, 6, 0.06) 0%, transparent 40%),
    radial-gradient(circle at 85% 60%, rgba(99, 102, 241, 0.05) 0%, transparent 45%);
  background-attachment: fixed;
}

/* 3D Iridescent Sphere Logo */
.iridescent-sphere {
  width: 36px;
  height: 36px;
  border-radius: 9999px;
  background: radial-gradient(circle at 35% 35%, #ffd269 0%, #ff758c 45%, #7e5bef 85%);
  box-shadow: 
    0 4px 12px rgba(126, 91, 239, 0.35),
    inset 0 2px 4px rgba(255, 255, 255, 0.6),
    inset 0 -2px 4px rgba(0, 0, 0, 0.2);
}

.split-card-shadow {
  box-shadow: 
    0 20px 25px -5px rgba(0, 0, 0, 0.08),
    0 35px 65px -10px rgba(79, 103, 235, 0.25),
    0 0 0 1px rgba(255, 255, 255, 0.6);
}

/* ==============================================================================
   LUXURY STATIONERY ENVELOPE (Step 3 Autoplay Unboxer)
   ============================================================================== */
.stationery-envelope-card {
  background: linear-gradient(145deg, #f7f1e5, #ece3d2);
  border: 1px solid rgba(212, 195, 168, 0.8);
  box-shadow: 
    0 20px 40px -10px rgba(0, 0, 0, 0.2),
    0 2px 4px rgba(0, 0, 0, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  position: relative;
  overflow: hidden;
}

/* Envelope Triangle Flap */
.envelope-triangle-flap {
  width: 0;
  height: 0;
  border-left: 140px solid transparent;
  border-right: 140px solid transparent;
  border-top: 85px solid #e5dac7;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.08));
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 5;
}

/* Authentic Wax Seal */
.wax-seal-monogram {
  width: 58px;
  height: 58px;
  border-radius: 9999px;
  background: radial-gradient(circle at 35% 35%, #b91c1c, #7f1d1d);
  box-shadow: 
    0 4px 15px rgba(127, 29, 29, 0.45),
    inset 0 2px 3px rgba(255, 255, 255, 0.35),
    inset 0 -2px 4px rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
}

.wax-seal-monogram::after {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1.5px dashed rgba(254, 226, 226, 0.35);
  border-radius: 9999px;
  pointer-events: none;
}

.wax-seal-monogram:hover {
  transform: scale(1.08);
  box-shadow: 
    0 6px 20px rgba(127, 29, 29, 0.6),
    inset 0 2px 4px rgba(255, 255, 255, 0.45);
}

.wax-seal-monogram:active {
  transform: scale(0.95);
}

/* ==============================================================================
   FINE LAID STATIONERY PAPER & STACKED SHEETS
   ============================================================================== */
.stationery-sheet {
  background-color: var(--paper-cream);
  color: var(--ink-primary);
  border: 1px solid var(--paper-edge);
  position: relative;
  box-shadow: 
    0 1px 3px rgba(0,0,0,0.05),
    0 25px 50px -12px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.5);
  border-radius: 20px;
}

/* Layered under-sheet shadow (creating stacked paper effect) */
.stationery-sheet::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 6px;
  right: -6px;
  bottom: -6px;
  background: var(--paper-subtle);
  border: 1px solid var(--paper-edge);
  border-radius: 20px;
  z-index: -1;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2);
}

/* Subtle handmade paper laid lines */
.stationery-sheet::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(0, 0, 0, 0.015) 1px, transparent 1px);
  background-size: 100% 32px;
  pointer-events: none;
  border-radius: inherit;
}

/* Authentic Vintage Postage Stamp */
.vintage-postage-stamp {
  width: 52px;
  height: 64px;
  background: #fdfbf7;
  padding: 4px;
  border: 1px dashed #c4b59d;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  transform: rotate(2deg);
}

/* Vintage Postmark Stamp Badge */
.vintage-postmark {
  border: 1.5px dashed rgba(160, 90, 30, 0.6);
  border-radius: 9999px;
  padding: 6px 16px;
  transform: rotate(-2.5deg);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #78350f;
  font-family: 'Plus Jakarta Sans', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: rgba(254, 243, 199, 0.45);
}

/* Wavy Postmark Cancellation Lines */
.postmark-waves {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
  opacity: 0.6;
}
.postmark-wave-line {
  width: 32px;
  height: 1.5px;
  background: #78350f;
  border-radius: 1px;
}

/* ==============================================================================
   POLAROID MEMORY PHOTO KEEPSAKES
   ============================================================================== */
.polaroid-card {
  background: #ffffff;
  padding: 10px 10px 14px 10px;
  box-shadow: 
    0 4px 6px -1px rgba(0, 0, 0, 0.08),
    0 18px 30px -8px rgba(0, 0, 0, 0.18),
    0 0 0 1px rgba(0, 0, 0, 0.04);
  border-radius: 3px;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
  position: relative;
}

.polaroid-card:hover {
  transform: scale(1.04) rotate(0deg) !important;
  box-shadow: 
    0 24px 38px -10px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(0, 0, 0, 0.08);
  z-index: 30;
}

.washi-tape {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 52px;
  height: 16px;
  background: rgba(246, 233, 195, 0.75);
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
  border-left: 2px dashed rgba(200, 180, 130, 0.4);
  border-right: 2px dashed rgba(200, 180, 130, 0.4);
  opacity: 0.9;
}

/* ==============================================================================
   VINYL AUDIO MINI PLAYER & SOUND WAVES
   ============================================================================== */
.glass-dock {
  background: rgba(14, 16, 22, 0.94);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
}

.spinning-vinyl {
  width: 38px;
  height: 38px;
  border-radius: 9999px;
  background: radial-gradient(circle at center, #d97706 0%, #1e1b18 28%, #0f0d0c 70%, #1a1715 100%);
  box-shadow: 0 2px 8px rgba(0,0,0,0.5), inset 0 0 2px rgba(255,255,255,0.4);
  position: relative;
  animation: spinVinyl 6s linear infinite;
  animation-play-state: paused;
}

.spinning-vinyl::before {
  content: "";
  position: absolute;
  inset: 13px;
  border-radius: 9999px;
  background: #f59e0b;
  box-shadow: inset 0 0 2px rgba(0,0,0,0.6);
}

.spinning-vinyl::after {
  content: "";
  position: absolute;
  inset: 17px;
  border-radius: 9999px;
  background: #0f0d0c;
}

.vinyl-playing {
  animation-play-state: running !important;
}

@keyframes spinVinyl {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.sound-bar {
  animation: wave 1.2s ease-in-out infinite alternate;
}
.sound-bar:nth-child(1) { animation-delay: 0.1s; }
.sound-bar:nth-child(2) { animation-delay: 0.3s; }
.sound-bar:nth-child(3) { animation-delay: 0.5s; }
.sound-bar:nth-child(4) { animation-delay: 0.2s; }
.sound-bar:nth-child(5) { animation-delay: 0.4s; }

@keyframes wave {
  0% { height: 4px; }
  100% { height: 18px; }
}

.sound-wave-paused .sound-bar {
  animation-play-state: paused;
  height: 4px !important;
}

/* Step container transitions */
.step-container {
  transition: opacity 0.35s ease, transform 0.35s ease;
}

/* Custom scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.25);
}
