/* When Life Gives You Tangerines - Natural, Muted Aesthetic */
/* Simple, quiet, like the show */

:root {
  /* Natural Earth Tones */
  --earth-brown: #8b7355;
  --forest-green: #6b8e6b;
  --sage-green: #9fb09f;
  --wheat: #d4c4a8;
  --cream: #f5f1e8;
  --soft-cream: #faf8f3;
  
  /* Muted Character Colors */
  --uniform-blue: #4a5d7a;
  --tracksuit-maroon: #8b5a5a;
  
  /* Tangerine - Subtle */
  --tangerine-muted: #d4a574;
  --tangerine-soft: #e8c9a0;
  
  /* Warm Colors */
  --warm-pink: #e8b8b8;
  --warm-peach: #f0c9a8;
  --cozy-brown: #a68b6b;
  
  /* Text */
  --text-dark: #3a3a3a;
  --text-muted: #6b6b6b;
  --text-light: #8b8b8b;
  
  /* Shadows - Very Subtle */
  --shadow-soft: 0 2px 10px rgba(0, 0, 0, 0.08);
  --shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Noto Serif KR', 'Noto Sans KR', serif;
  background: var(--cream);
  color: var(--text-dark);
  line-height: 1.8;
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

/* Natural Background */
.natural-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background: 
    linear-gradient(180deg, 
      var(--soft-cream) 0%,
      var(--cream) 30%,
      #e8e0d4 60%,
      var(--cream) 100%
    );
  pointer-events: none;
}

.natural-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(139, 115, 85, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(107, 142, 107, 0.02) 0%, transparent 50%);
}

/* Subtle Particles */
.subtle-particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

/* Floating Hearts */
.floating-hearts {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.floating-heart {
  position: absolute;
  font-size: 20px;
  opacity: 0;
  animation: heartFloatUp 8s ease-out forwards;
  pointer-events: none;
}

@keyframes heartFloatUp {
  0% {
    opacity: 0;
    transform: translateY(100vh) scale(0) rotate(0deg);
  }
  10% {
    opacity: 0.8;
  }
  90% {
    opacity: 0.8;
  }
  100% {
    opacity: 0;
    transform: translateY(-20vh) scale(1) rotate(360deg);
  }
}

.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--tangerine-muted);
  border-radius: 50%;
  opacity: 0;
  animation: particleFloat 20s ease-in-out infinite;
}

@keyframes particleFloat {
  0% {
    opacity: 0;
    transform: translateY(100vh) translateX(0);
  }
  10% {
    opacity: 0.3;
  }
  90% {
    opacity: 0.3;
  }
  100% {
    opacity: 0;
    transform: translateY(-20vh) translateX(50px);
  }
}

/* Main Content */
main {
  position: relative;
  z-index: 2;
}

/* ===== HERO SECTION ===== */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 3rem 2rem;
  position: relative;
  background: var(--cream);
}

.hero-content {
  max-width: 600px;
  animation: fadeInUp 2s ease-out;
}

.hero-tangerine {
  font-size: 4rem;
  margin-bottom: 2rem;
  opacity: 0.7;
  animation: gentleFloat 4s ease-in-out infinite;
  cursor: pointer;
  transition: all 0.3s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.hero-tangerine:active {
  transform: scale(0.9);
}

.interactive-tangerine {
  cursor: pointer;
  transition: all 0.3s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.interactive-tangerine:active {
  transform: scale(0.85) rotate(15deg);
}

.tap-prompt {
  font-family: 'Noto Sans KR', sans-serif;
  font-size: clamp(0.85rem, 2.5vw, 1rem);
  color: var(--earth-brown);
  margin-top: 2.5rem;
  padding: 0.8rem 1.5rem;
  background: rgba(139, 115, 85, 0.08);
  border: 1px solid rgba(139, 115, 85, 0.15);
  border-radius: 50px;
  font-weight: 400;
  animation: pulsePrompt 2s ease-in-out infinite;
  display: inline-block;
}

@keyframes pulsePrompt {
  0%, 100% { 
    opacity: 0.7;
    transform: scale(1);
  }
  50% { 
    opacity: 1;
    transform: scale(1.05);
  }
}

@keyframes gentleFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.hero-title {
  font-family: 'Noto Serif KR', serif;
  font-size: clamp(2rem, 7vw, 3.5rem);
  font-weight: 300;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  letter-spacing: 1px;
}

.hero-name {
  font-family: 'Noto Serif KR', serif;
  font-size: clamp(2.5rem, 9vw, 4.5rem);
  font-weight: 400;
  color: var(--earth-brown);
  margin-bottom: 1.5rem;
  letter-spacing: 2px;
}

.hero-date {
  font-family: 'Noto Sans KR', sans-serif;
  font-size: clamp(0.85rem, 2.5vw, 1rem);
  color: var(--text-muted);
  font-weight: 300;
  letter-spacing: 1px;
}

/* ===== QUOTE SECTION ===== */
.quote-section {
  padding: 8rem 2rem;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--soft-cream);
}

.interactive-section {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.quote-content {
  max-width: 600px;
  width: 100%;
  text-align: center;
  padding: 3rem 2rem;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(10px);
  border-radius: 2px;
  border: 1px solid rgba(139, 115, 85, 0.15);
  transition: all 0.3s ease;
}

.interactive-section:active .quote-content,
.interactive-section:active .message-content,
.interactive-section:active .wish-content,
.interactive-section:active .together-content,
.interactive-section:active .final-content {
  transform: scale(0.98);
  background: rgba(255, 255, 255, 0.5);
  box-shadow: var(--shadow-soft);
}

.interactive-section:hover .quote-content,
.interactive-section:hover .message-content,
.interactive-section:hover .wish-content,
.interactive-section:hover .together-content,
.interactive-section:hover .final-content {
  border-color: rgba(139, 115, 85, 0.25);
  transition: all 0.3s ease;
}

.quote-text {
  font-family: 'Noto Serif KR', serif;
  font-size: clamp(1.3rem, 5vw, 2rem);
  font-weight: 300;
  color: var(--text-dark);
  line-height: 1.7;
  margin-bottom: 1rem;
  font-style: italic;
}

.quote-divider {
  width: 60px;
  height: 1px;
  background: var(--earth-brown);
  margin: 2rem auto;
  opacity: 0.3;
}

.section-reveal {
  font-family: 'Noto Serif KR', serif;
  font-size: clamp(1rem, 3.5vw, 1.3rem);
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.7;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(139, 115, 85, 0.1);
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.5s ease;
  font-style: italic;
}

.section-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Love Notes */
.love-note {
  font-family: 'Noto Serif KR', serif;
  font-size: clamp(1.1rem, 4vw, 1.5rem);
  font-weight: 300;
  color: var(--warm-pink);
  line-height: 1.7;
  margin-top: 2rem;
  padding: 1.5rem;
  background: rgba(232, 184, 184, 0.1);
  border-radius: 12px;
  border: 1px solid rgba(232, 184, 184, 0.2);
  opacity: 0;
  transform: translateY(15px) scale(0.95);
  transition: all 0.6s ease;
  font-style: italic;
}

.love-note.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  animation: loveNoteGlow 2s ease-in-out;
}

@keyframes loveNoteGlow {
  0%, 100% {
    box-shadow: 0 0 0 rgba(232, 184, 184, 0);
  }
  50% {
    box-shadow: 0 0 20px rgba(232, 184, 184, 0.3);
  }
}

.love-note.hidden {
  display: none;
}

/* ===== MESSAGE SECTION ===== */
.message-section {
  padding: 8rem 2rem;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream);
}

.message-content {
  max-width: 600px;
  width: 100%;
  text-align: center;
  padding: 3rem 2rem;
}

.message-text {
  font-family: 'Noto Serif KR', serif;
  font-size: clamp(1.2rem, 4.5vw, 1.8rem);
  font-weight: 300;
  color: var(--text-dark);
  line-height: 1.8;
  margin-bottom: 1rem;
  font-style: italic;
}

/* ===== WISH SECTION ===== */
.wish-section {
  padding: 8rem 2rem;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--soft-cream);
}

.wish-content {
  max-width: 600px;
  width: 100%;
  text-align: center;
  padding: 3rem 2rem;
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
  border-radius: 2px;
  border: 1px solid rgba(139, 115, 85, 0.12);
}

.wish-text {
  font-family: 'Noto Serif KR', serif;
  font-size: clamp(1.2rem, 4.5vw, 1.8rem);
  font-weight: 300;
  color: var(--text-dark);
  line-height: 1.8;
  margin-bottom: 0.8rem;
}

.wish-text:first-child {
  font-weight: 400;
  color: var(--earth-brown);
  font-size: clamp(1.4rem, 5vw, 2rem);
}

.wish-divider {
  width: 50px;
  height: 1px;
  background: var(--tangerine-muted);
  margin: 2rem auto;
  opacity: 0.4;
}

/* ===== TOGETHER SECTION ===== */
.together-section {
  padding: 8rem 2rem;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream);
}

.together-content {
  max-width: 600px;
  width: 100%;
  text-align: center;
  padding: 3rem 2rem;
}

.together-text {
  font-family: 'Noto Serif KR', serif;
  font-size: clamp(1.4rem, 5.5vw, 2.2rem);
  font-weight: 300;
  color: var(--text-dark);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.together-tangerine {
  font-size: 2.5rem;
  margin: 2rem 0;
  opacity: 0.6;
}

/* ===== FINAL SECTION ===== */
.final-section {
  padding: 8rem 2rem;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--soft-cream);
}

.final-content {
  max-width: 600px;
  width: 100%;
  text-align: center;
  padding: 3rem 2rem;
}

.final-text {
  font-family: 'Noto Serif KR', serif;
  font-size: clamp(1.3rem, 5vw, 2rem);
  font-weight: 300;
  color: var(--text-dark);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.final-heart {
  font-size: 2rem;
  margin-top: 2.5rem;
  opacity: 0.6;
  cursor: pointer;
  transition: all 0.3s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  display: inline-block;
}

.interactive-heart:active {
  transform: scale(1.3);
  opacity: 1;
}

.interactive-heart {
  transition: all 0.3s ease;
}

.interactive-heart:hover {
  transform: scale(1.15);
  opacity: 0.8;
}

/* Cozy Glow Effects */
.quote-content,
.message-content,
.wish-content,
.together-content,
.final-content {
  transition: all 0.4s ease;
}

.interactive-section.active .quote-content,
.interactive-section.active .message-content,
.interactive-section.active .wish-content,
.interactive-section.active .together-content,
.interactive-section.active .final-content {
  box-shadow: 0 0 30px rgba(232, 184, 184, 0.15);
  border-color: rgba(232, 184, 184, 0.3);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .quote-content,
  .wish-content {
    padding: 2.5rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 2rem 1.5rem;
  }
  
  .quote-content,
  .wish-content,
  .message-content,
  .together-content,
  .final-content {
    padding: 2rem 1.5rem;
  }
}

/* Ripple Effect */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(139, 115, 85, 0.2);
  transform: scale(0);
  animation: rippleAnimation 0.6s ease-out;
  pointer-events: none;
}

@keyframes rippleAnimation {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

@keyframes heartBeat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.3); }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
