/* ==========================================================================
   Design System & Styling for Saint-Valentin Jujutsu Kaisen Date Site
   ========================================================================== */

:root {
  --primary-pink: #ff4d6d;
  --secondary-pink: #ff758f;
  --soft-pink: #ffb3c1;
  --pastel-bg-1: #2b0b1e;
  --pastel-bg-2: #140511;
  --accent-purple: #7b2cbf;
  --accent-blue: #00b4d8;
  --text-dark: #2d1e2f;
  --text-light: #ffffff;
  --card-bg: rgba(255, 255, 255, 0.12);
  --card-border: rgba(255, 182, 193, 0.3);
  --shadow-glow: 0 10px 35px rgba(255, 77, 109, 0.35);
  --font-heading: 'Fredoka', 'Poppins', sans-serif;
  --font-body: 'Poppins', sans-serif;
  --font-romantic: 'Sacramento', cursive;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
}

body, html {
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  font-family: var(--font-body);
  background: linear-gradient(135deg, #1f0318 0%, #380829 40%, #150013 100%);
  color: var(--text-light);
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Background Canvas */
#particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* Sound Toggle */
.sound-btn {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 100;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid var(--card-border);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, background 0.2s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.sound-btn:hover {
  transform: scale(1.1);
  background: rgba(255, 255, 255, 0.25);
}

/* Main Container */
.main-container {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 480px;
  padding: 16px;
}

/* Valentine Card */
.valentine-card {
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--card-border);
  border-radius: 28px;
  padding: 24px 20px;
  box-shadow: var(--shadow-glow), 0 20px 50px rgba(0, 0, 0, 0.5);
  text-align: center;
  animation: cardEntrance 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  display: flex;
  flex-direction: column;
  align-items: center;
}

@keyframes cardEntrance {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.92);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Card Badge */
.card-badge {
  display: inline-block;
  background: linear-gradient(90deg, #ff4d6d, #7b2cbf);
  color: #fff;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 1.5px;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(255, 77, 109, 0.4);
  text-transform: uppercase;
  animation: pulseGlow 2s infinite ease-in-out;
}

@keyframes pulseGlow {
  0%, 100% { transform: scale(1); box-shadow: 0 4px 12px rgba(255, 77, 109, 0.4); }
  50% { transform: scale(1.04); box-shadow: 0 6px 20px rgba(255, 77, 109, 0.7); }
}

/* Hero Image */
.hero-image-wrapper {
  position: relative;
  width: 100%;
  max-width: 320px;
  aspect-ratio: 1 / 1;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  margin-bottom: 20px;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.hero-image-wrapper:hover .hero-image {
  transform: scale(1.05);
}

.floating-tag {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  color: #ff9ebb;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid rgba(255, 158, 187, 0.4);
}

/* Typography */
.title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.25;
  color: #ffffff;
  margin-bottom: 10px;
  text-shadow: 0 2px 10px rgba(255, 77, 109, 0.5);
}

.subtitle {
  font-size: 0.95rem;
  color: #f1d7e5;
  margin-bottom: 20px;
  line-height: 1.5;
}

.highlight {
  color: #ff758f;
  font-weight: 700;
  background: linear-gradient(90deg, #ff758f, #e0aaff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Date Details Card */
.date-details {
  width: 100%;
  background: rgba(0, 0, 0, 0.25);
  border: 1px dashed rgba(255, 182, 193, 0.4);
  border-radius: 16px;
  padding: 12px 16px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: #ffe5ec;
}

.detail-icon {
  font-size: 1.1rem;
}

/* Buttons Container */
.buttons-container {
  position: relative;
  width: 100%;
  min-height: 120px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
}

.btn {
  border: none;
  outline: none;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  padding: 14px 28px;
  border-radius: 50px;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.2s ease, background 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

/* Oui Button */
.btn-yes {
  background: linear-gradient(135deg, #ff4d6d 0%, #c77dff 100%);
  color: #ffffff;
  box-shadow: 0 8px 25px rgba(255, 77, 109, 0.5);
  z-index: 2;
}

.btn-yes:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 30px rgba(255, 77, 109, 0.7);
}

.btn-yes:active {
  transform: scale(0.96);
}

/* Non Button (Evasive) */
.btn-no {
  background: rgba(255, 255, 255, 0.15);
  color: #ffcad4;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  z-index: 1;
  position: relative;
  transition: top 0.2s ease-out, left 0.2s ease-out, transform 0.15s ease-out;
}

.btn-no.evasive {
  position: fixed !important;
}

/* Celebration Overlay */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 2, 13, 0.85);
  backdrop-filter: blur(15px);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  opacity: 1;
  transition: opacity 0.4s ease;
}

.overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.overlay-card {
  background: linear-gradient(135deg, rgba(255, 77, 109, 0.2), rgba(123, 44, 191, 0.3));
  border: 2px solid var(--primary-pink);
  border-radius: 28px;
  padding: 36px 28px;
  text-align: center;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 0 50px rgba(255, 77, 109, 0.6);
  animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
  from { transform: scale(0.7); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.heart-pulse {
  font-size: 4rem;
  animation: heartBeat 1s infinite alternate ease-in-out;
}

@keyframes heartBeat {
  from { transform: scale(1); }
  to { transform: scale(1.25); }
}

.overlay-card h2 {
  font-family: var(--font-heading);
  color: #ffffff;
  font-size: 1.6rem;
  margin: 16px 0 8px 0;
}

.overlay-card p {
  color: #ffcad4;
  font-size: 1rem;
  margin-bottom: 24px;
}

.redirect-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 0.9rem;
  color: #e0aaff;
  background: rgba(0, 0, 0, 0.4);
  padding: 10px 16px;
  border-radius: 12px;
}

.spinner {
  width: 18px;
  height: 18px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top-color: #ff4d6d;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* Mobile Adjustments */
@media (max-width: 480px) {
  .title {
    font-size: 1.45rem;
  }
  .subtitle {
    font-size: 0.85rem;
  }
  .btn {
    font-size: 0.95rem;
    padding: 12px 20px;
  }
  .valentine-card {
    padding: 18px 14px;
  }
}
