/* ═══════════════════════════════════════════
   love-meter.css — Love Meter Page Styles
   Abb Tak Single ❤️
   Used in: love-meter.html only
═══════════════════════════════════════════ */

/* ═══════════════════════════════════════════
   LOVE METER PAGE WRAPPER
═══════════════════════════════════════════ */
.love-meter-page {
  min-height: calc(100vh - var(--navbar-height));
  background: var(--bg-primary);
  padding-bottom: 40px;
}

/* ═══════════════════════════════════════════
   HERO SECTION
═══════════════════════════════════════════ */
.lm-hero {
  background: var(--gradient-main);
  padding: 32px 20px 28px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Glowing background effect */
.lm-hero::before {
  content: '';
  position: absolute;
  top: -40%;
  left: -40%;
  width: 180%;
  height: 180%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.12) 0%,
    transparent 60%
  );
  animation: heroGlow 4s ease-in-out infinite;
  pointer-events: none;
}

/* Floating hearts background */
.lm-hero::after {
  content: '💗 💕 💖 💗 💕';
  position: absolute;
  bottom: -10px;
  left: 0;
  right: 0;
  font-size: 1.2rem;
  opacity: 0.15;
  letter-spacing: 20px;
  pointer-events: none;
}

@keyframes heroGlow {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50%       { transform: scale(1.15) rotate(5deg); }
}

.lm-hero-emoji {
  font-size: 3rem;
  position: relative;
  z-index: 1;
  animation: heartbeat 1.5s ease-in-out infinite;
  display: block;
  margin-bottom: 10px;
}

.lm-hero h1 {
  font-size: clamp(1.4rem, 5vw, 1.9rem);
  font-weight: 800;
  color: #fff;
  position: relative;
  z-index: 1;
  margin-bottom: 8px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.lm-hero p {
  font-size: clamp(0.8rem, 3vw, 0.92rem);
  color: rgba(255, 255, 255, 0.9);
  position: relative;
  z-index: 1;
  line-height: 1.6;
}

/* ═══════════════════════════════════════════
   MAIN CONTAINER
═══════════════════════════════════════════ */
.lm-container {
  max-width: 560px;
  margin: 0 auto;
  padding: 24px 16px;
}

/* ═══════════════════════════════════════════
   START SCREEN
═══════════════════════════════════════════ */
.lm-start-screen {
  text-align: center;
  animation: fadeInUp 0.4s ease;
}

.lm-start-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 28px 22px;
  box-shadow: var(--shadow-card);
  margin-bottom: 0;
}

.lm-start-card h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.lm-start-card > p {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 22px;
}

/* How it works steps */
.lm-steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
  text-align: left;
}

.lm-step-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--bg-primary);
  border-radius: var(--radius-md);
  transition: transform var(--transition-fast);
}

.lm-step-item:hover {
  transform: translateX(4px);
}

.lm-step-num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--gradient-main);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(255, 107, 157, 0.3);
}

.lm-step-text {
  font-size: 0.83rem;
  color: var(--text-secondary);
  font-weight: 500;
  line-height: 1.4;
}

/* Start Button */
.lm-start-btn {
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: var(--radius-lg);
  background: var(--gradient-main);
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-main);
  box-shadow: 0 4px 20px rgba(255, 107, 157, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
}

/* Shimmer effect on start button */
.lm-start-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255,255,255,0.2),
    transparent
  );
  transition: left 0.5s ease;
}

.lm-start-btn:hover::before {
  left: 100%;
}

.lm-start-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(255, 107, 157, 0.55);
}

.lm-start-btn:active {
  transform: translateY(0);
}

/* ═══════════════════════════════════════════
   QUESTION SCREEN
═══════════════════════════════════════════ */
.lm-question-screen {
  display: none;
}
.lm-question-screen.active {
  display: block;
  animation: fadeInUp 0.35s ease;
}

/* Progress Bar */
.lm-progress-wrapper {
  margin-bottom: 18px;
}

.lm-progress-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.lm-progress-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
}

.lm-progress-label span {
  color: var(--color-primary);
  font-weight: 700;
  font-size: 0.85rem;
}

.lm-progress-bar {
  height: 7px;
  background: var(--border-color);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.lm-progress-fill {
  height: 100%;
  background: var(--gradient-main);
  border-radius: var(--radius-full);
  transition: width 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  width: 0%;
  position: relative;
  overflow: hidden;
}

/* Shimmer on progress fill */
.lm-progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255,255,255,0.4),
    transparent
  );
  animation: progressShimmer 1.5s infinite;
}

@keyframes progressShimmer {
  to { left: 100%; }
}

/* Question Card */
.lm-question-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 26px 22px;
  box-shadow: var(--shadow-card);
  margin-bottom: 0;
}

.lm-q-emoji {
  font-size: 2.4rem;
  margin-bottom: 12px;
  display: block;
  animation: bounceIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.lm-q-text {
  font-size: clamp(0.95rem, 3.5vw, 1.1rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.5;
  margin-bottom: 22px;
}

/* Answer Options */
.lm-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lm-option-btn {
  width: 100%;
  padding: 14px 18px;
  border-radius: var(--radius-lg);
  border: 2px solid var(--border-color);
  background: var(--bg-primary);
  color: var(--text-secondary);
  font-family: 'Poppins', sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  overflow: hidden;
}

/* Option hover shimmer */
.lm-option-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-main);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.lm-option-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: translateX(6px);
  box-shadow: 0 4px 15px rgba(255, 107, 157, 0.15);
}

.lm-option-btn.selected {
  border-color: var(--color-primary);
  background: rgba(255, 107, 157, 0.08);
  color: var(--color-primary);
  font-weight: 600;
  transform: translateX(6px);
  box-shadow: 0 4px 15px rgba(255, 107, 157, 0.2);
}

/* Checkmark on selected */
.lm-option-btn.selected::after {
  content: '✓';
  margin-left: auto;
  font-weight: 800;
  font-size: 1rem;
  color: var(--color-primary);
  flex-shrink: 0;
}

.option-emoji {
  font-size: 1.2rem;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.option-text {
  position: relative;
  z-index: 1;
  flex: 1;
}

/* ═══════════════════════════════════════════
   LOADING SCREEN
═══════════════════════════════════════════ */
.lm-loading-screen {
  display: none;
  text-align: center;
  padding: 20px 0;
}
.lm-loading-screen.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

.lm-loading-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 44px 24px;
  box-shadow: var(--shadow-card);
}

.lm-loading-hearts {
  font-size: 3rem;
  margin-bottom: 18px;
  display: block;
  animation: heartbeat 1s ease-in-out infinite;
}

.lm-loading-text {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.lm-loading-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 28px;
  line-height: 1.6;
}

.lm-loading-bar {
  height: 7px;
  background: var(--border-color);
  border-radius: var(--radius-full);
  overflow: hidden;
  max-width: 280px;
  margin: 0 auto;
}

.lm-loading-fill {
  height: 100%;
  background: var(--gradient-main);
  border-radius: var(--radius-full);
  width: 0%;
  transition: width 0.3s ease;
}

/* Loading dots animation */
.lm-loading-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 16px;
}

.lm-loading-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-primary);
  animation: dotBounce 1.4s ease-in-out infinite;
  opacity: 0.4;
}

.lm-loading-dots span:nth-child(1) { animation-delay: 0s; }
.lm-loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.lm-loading-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes dotBounce {
  0%, 80%, 100% {
    transform: scale(0.6);
    opacity: 0.4;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

/* ═══════════════════════════════════════════
   RESULT SCREEN
═══════════════════════════════════════════ */
.lm-result-screen {
  display: none;
}
.lm-result-screen.active {
  display: block;
  animation: fadeInUp 0.5s ease;
}

/* ─── Circular Meter Wrapper ─── */
.lm-meter-wrapper {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 30px 22px;
  box-shadow: var(--shadow-card);
  text-align: center;
  margin-bottom: 14px;
}

.lm-meter-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 22px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.lm-meter-title i {
  color: var(--color-primary);
}

/* ─── SVG Circle Meter ─── */
.lm-circle-meter {
  position: relative;
  width: 190px;
  height: 190px;
  margin: 0 auto 22px;
}

.lm-circle-meter svg {
  transform: rotate(-90deg);
  width: 190px;
  height: 190px;
  filter: drop-shadow(0 4px 12px rgba(255, 107, 157, 0.2));
}

.lm-circle-bg {
  fill: none;
  stroke: var(--border-color);
  stroke-width: 13;
}

.lm-circle-fill {
  fill: none;
  stroke: url(#meterGradient);
  stroke-width: 13;
  stroke-linecap: round;
  stroke-dasharray: 534;
  stroke-dashoffset: 534;
  transition: stroke-dashoffset 2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Score in center of circle */
.lm-score-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.lm-score-number {
  font-size: 2.4rem;
  font-weight: 800;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  display: block;
  transition: all 0.3s ease;
}

.lm-score-percent {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 2px;
}

/* ─── Result Info ─── */
.lm-result-emoji-row {
  font-size: 1.8rem;
  margin-bottom: 10px;
  animation: bounceIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.lm-result-level {
  font-size: 1.35rem;
  font-weight: 800;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
  animation: fadeInUp 0.5s ease 0.2s both;
}

.lm-result-message {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.75;
  background: var(--bg-primary);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  border-left: 4px solid var(--color-primary);
  text-align: left;
  animation: fadeInUp 0.5s ease 0.3s both;
  font-style: italic;
}

/* Fun stat from server */
.lm-fun-stat {
  background: rgba(255, 107, 157, 0.07);
  border: 1.5px solid rgba(255, 107, 157, 0.2);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin-top: 14px;
  font-size: 0.8rem;
  color: var(--color-primary);
  font-weight: 600;
  display: none;
  align-items: center;
  gap: 8px;
  animation: fadeInUp 0.5s ease 0.4s both;
}
.lm-fun-stat.visible {
  display: flex;
}
.lm-fun-stat i { font-size: 1rem; flex-shrink: 0; }

/* ─── Result Action Buttons ─── */
.lm-result-actions {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 20px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lm-action-btn {
  width: 100%;
  padding: 14px;
  border-radius: var(--radius-md);
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-main);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

/* WhatsApp Button */
.lm-action-btn.whatsapp {
  background: #25d366;
  color: #fff;
  border: none;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}
.lm-action-btn.whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(37, 211, 102, 0.45);
  color: #fff;
}

/* Read Stories Button */
.lm-action-btn.stories {
  background: var(--gradient-main);
  color: #fff;
  border: none;
  box-shadow: 0 4px 15px rgba(255, 107, 157, 0.3);
}
.lm-action-btn.stories:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(255, 107, 157, 0.45);
  color: #fff;
}

/* Try Again Button */
.lm-action-btn.again {
  background: transparent;
  color: var(--text-secondary);
  border: 2px solid var(--border-color);
}
.lm-action-btn.again:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: translateY(-1px);
}

/* ═══════════════════════════════════════════
   CONFETTI ANIMATION
═══════════════════════════════════════════ */
.confetti-piece {
  position: fixed;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  animation: confettiFall linear forwards;
  pointer-events: none;
  z-index: 9999;
}

@keyframes confettiFall {
  0% {
    transform: translateY(-20px) rotate(0deg) scale(1);
    opacity: 1;
  }
  80% {
    opacity: 1;
  }
  100% {
    transform: translateY(100vh) rotate(720deg) scale(0.5);
    opacity: 0;
  }
}

/* ═══════════════════════════════════════════
   RESULT LEVEL COLORS
   (applied via JS based on score)
═══════════════════════════════════════════ */
.result-just-friends  .lm-result-level { color: #6b7280; }
.result-growing       .lm-result-level { color: #10b981; }
.result-crush         .lm-result-level { color: #f59e0b; }
.result-deep-feelings .lm-result-level { color: #ef4444; }
.result-true-love     .lm-result-level { color: var(--color-primary); }

/* ═══════════════════════════════════════════
   QUESTION TRANSITION ANIMATIONS
═══════════════════════════════════════════ */
@keyframes slideOutLeft {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(-30px);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.lm-question-card.slide-out {
  animation: slideOutLeft 0.25s ease forwards;
}

.lm-question-card.slide-in {
  animation: slideInRight 0.3s ease forwards;
}

/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */

/* Mobile base (default above) */

/* Tablet 768px+ */
@media (min-width: 768px) {
  .lm-hero {
    padding: 40px 24px 34px;
  }
  .lm-container {
    padding: 28px 24px;
  }
  .lm-start-card {
    padding: 32px 28px;
  }
  .lm-question-card {
    padding: 30px 28px;
  }
  .lm-circle-meter {
    width: 210px;
    height: 210px;
  }
  .lm-circle-meter svg {
    width: 210px;
    height: 210px;
  }
  .lm-score-number {
    font-size: 2.8rem;
  }
  .lm-option-btn {
    font-size: 0.92rem;
    padding: 15px 20px;
  }
}

/* Desktop 1024px+ */
@media (min-width: 1024px) {
  .lm-hero {
    padding: 48px 24px 40px;
  }
  .lm-hero h1 {
    font-size: 2.2rem;
  }
  .lm-result-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .lm-action-btn.whatsapp,
  .lm-action-btn.stories {
    flex: 1;
  }
  .lm-action-btn.again {
    width: 100%;
  }
}