/* LOVE STORY 01 — OUR LITTLE STORY STYLE SYSTEM */

:root {
  --primary-color: #ff477e;
  --secondary-color: #ff758c;
  --accent-color: #c71585;
  --bg-gradient: radial-gradient(circle at center, #fff5f8 0%, #ffe4ec 100%);
  --card-bg: rgba(255, 255, 255, 0.88);
  --text-primary: #2c3e50;
  --text-muted: #7f8c8d;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Mali', 'Itim', 'Prompt', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-gradient);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* SECTION 1 — OPENING SCREEN */
.ls-opening-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(135deg, #ff758c 0%, #ff7eb3 50%, #764ba2 100%);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-align: center;
  padding: 20px;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.ls-opening-screen.hidden {
  opacity: 0;
  transform: scale(1.1);
  pointer-events: none;
}

.ls-opening-logo {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 15px;
  text-transform: uppercase;
  text-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.ls-opening-subtitle {
  font-size: 1.25rem;
  font-weight: 300;
  margin-bottom: 35px;
  opacity: 0.95;
  max-width: 500px;
  line-height: 1.6;
}

.ls-open-btn {
  background: #ffffff;
  color: var(--primary-color);
  font-size: 1.15rem;
  font-weight: 600;
  padding: 16px 42px;
  border-radius: 50px;
  border: none;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.ls-open-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 15px 35px rgba(0,0,0,0.3);
}

/* SECTION 2 — HERO */
.ls-hero-section {
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px 40px;
  text-align: center;
  position: relative;
}

.ls-hero-cover-wrap {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  padding: 8px;
  background: linear-gradient(135deg, #ff477e, #ff758c, #ffffff);
  box-shadow: 0 20px 50px rgba(255, 71, 126, 0.3);
  margin-bottom: 30px;
  position: relative;
  overflow: hidden;
  animation: heroPulse 4s infinite alternate ease-in-out;
}

@keyframes heroPulse {
  0% { transform: scale(1); box-shadow: 0 20px 40px rgba(255, 71, 126, 0.25); }
  100% { transform: scale(1.03); box-shadow: 0 25px 60px rgba(255, 71, 126, 0.45); }
}

.ls-hero-cover-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  transition: transform 10s ease;
}

.ls-hero-cover-wrap:hover .ls-hero-cover-img {
  transform: scale(1.1);
}

.ls-hero-title {
  font-family: 'Mali', 'Itim', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent-color);
  margin-bottom: 12px;
  text-shadow: 0 2px 10px rgba(199, 21, 133, 0.15);
}

.ls-hero-subtitle {
  font-size: 1.15rem;
  color: #555;
  max-width: 600px;
  line-height: 1.6;
  margin-bottom: 25px;
}

.ls-scroll-indicator {
  margin-top: 30px;
  color: var(--primary-color);
  font-size: 1.8rem;
  animation: bounceDown 2s infinite;
}

@keyframes bounceDown {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}

/* SECTION 3 — LOVE MESSAGE */
.ls-section {
  max-width: 800px;
  margin: 40px auto;
  padding: 0 20px;
}

.ls-card-box {
  background: var(--card-bg);
  backdrop-filter: blur(15px);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  padding: 40px 30px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.06);
  position: relative;
}

.ls-message-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 20px;
  text-align: center;
}

.ls-message-body {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #444;
  white-space: pre-line;
  text-align: center;
}

/* SECTION 4 — POLAROID GALLERY */
.ls-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 25px;
  margin-top: 25px;
}

.ls-polaroid-item {
  background: #ffffff;
  padding: 12px 12px 25px 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  border-radius: 6px;
  transform: rotate(var(--rotation, 0deg));
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
}

.ls-polaroid-item:hover {
  transform: scale(1.08) rotate(0deg) !important;
  z-index: 10;
  box-shadow: 0 20px 40px rgba(255, 71, 126, 0.25);
}

.ls-polaroid-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 4px;
}

/* SECTION 5 — TIMELINE */
.ls-timeline {
  position: relative;
  margin: 30px 0;
  padding-left: 30px;
  border-left: 3px dashed var(--secondary-color);
}

.ls-timeline-item {
  position: relative;
  margin-bottom: 30px;
}

.ls-timeline-item::before {
  content: '❤️';
  position: absolute;
  left: -43px;
  top: 0;
  font-size: 1.2rem;
  background: #ffffff;
  border-radius: 50%;
  padding: 2px;
}

.ls-timeline-date {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary-color);
  text-transform: uppercase;
}

.ls-timeline-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 4px 0 8px 0;
}

.ls-timeline-desc {
  font-size: 0.98rem;
  color: #666;
  line-height: 1.5;
}

/* SECTION 6 — SPECIAL DATE COUNTER */
.ls-counter-wrap {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 25px;
}

.ls-counter-box {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: #ffffff;
  padding: 20px;
  border-radius: 18px;
  min-width: 110px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(255, 71, 126, 0.25);
}

.ls-counter-num {
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1;
}

.ls-counter-unit {
  font-size: 0.85rem;
  margin-top: 6px;
  opacity: 0.9;
}

/* SECTION 7 — MUSIC PLAYER FLOAT */
.ls-music-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 10px 25px rgba(255,71,126,0.4);
  cursor: pointer;
  z-index: 999;
  border: 3px solid #ffffff;
  transition: transform 0.2s ease;
}

.ls-music-float.playing i {
  animation: spinMusic 3s linear infinite;
}

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

/* SECTION 8 — FINAL MESSAGE */
.ls-final-section {
  text-align: center;
  padding: 60px 20px;
}

.ls-heart-tap-btn {
  background: linear-gradient(135deg, #ff477e, #c71585);
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 600;
  padding: 16px 40px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(255, 71, 126, 0.4);
  transition: transform 0.2s ease;
  margin-top: 20px;
}

.ls-heart-tap-btn:hover {
  transform: scale(1.06);
}

/* PARTICLES */
.ls-particle {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  animation: floatParticle 1.5s forwards ease-out;
}

@keyframes floatParticle {
  0% { opacity: 1; transform: translate(-50%, -50%) scale(0.6); }
  100% { opacity: 0; transform: translate(-50%, -130px) scale(1.5); }
}

/* RESPONSIVE */
@media (max-width: 576px) {
  .ls-hero-cover-wrap { width: 220px; height: 220px; }
  .ls-hero-title { font-size: 2.2rem; }
  .ls-card-box { padding: 25px 20px; }
  .ls-counter-num { font-size: 1.8rem; }
  .ls-counter-box { min-width: 80px; padding: 12px; }
}
