/* ============================================
   VALENTINE'S DAY WEBSITE - SHARED STYLES
   Created with love 💕
   ============================================ */

/* ============================================
   CSS VARIABLES - Easy to customize!
   ============================================ */
:root {
  /* Color Palette - Soft Valentine's theme */
  --color-primary: #ff6b9d;
  --color-secondary: #ffc2d4;
  --color-accent: #ff1744;
  --color-cream: #fff5f7;
  --color-white: #ffffff;
  --color-dark-pink: #c44569;
  --color-light-pink: #ffe5ec;
  --color-gold: #ffd700;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #ff6b9d 0%, #ffc2d4 100%);
  --gradient-romantic: linear-gradient(45deg, #ff9a9e 0%, #fecfef 99%, #fecfef 100%);
  --gradient-sunset: linear-gradient(120deg, #f093fb 0%, #f5576c 100%);
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 3rem;
  --spacing-xl: 5rem;
  
  /* Typography */
  --font-display: 'Georgia', 'Palatino', serif;
  --font-body: 'Trebuchet MS', 'Lucida Sans', sans-serif;
  --font-handwritten: 'Comic Sans MS', cursive;
  
  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-soft: 0 4px 20px rgba(255, 107, 157, 0.15);
  --shadow-medium: 0 8px 30px rgba(255, 107, 157, 0.25);
  --shadow-strong: 0 12px 40px rgba(255, 107, 157, 0.35);
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--gradient-romantic);
  background-attachment: fixed;
  color: #333;
  overflow-x: hidden;
  min-height: 100vh;
}

/* ============================================
   ANIMATED BACKGROUND HEARTS
   Floating hearts in the background
   ============================================ */
.hearts-background {
  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: float-up 8s infinite ease-in;
}

@keyframes float-up {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.6;
  }
  90% {
    opacity: 0.6;
  }
  100% {
    transform: translateY(-100px) rotate(360deg);
    opacity: 0;
  }
}

/* ============================================
   SPARKLE EFFECTS
   Magical sparkles that appear randomly
   ============================================ */
.sparkle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--color-gold);
  border-radius: 50%;
  pointer-events: none;
  animation: sparkle-fade 1.5s ease-out forwards;
  box-shadow: 0 0 10px var(--color-gold);
}

@keyframes sparkle-fade {
  0% {
    transform: scale(0) rotate(0deg);
    opacity: 1;
  }
  50% {
    transform: scale(1.5) rotate(180deg);
    opacity: 1;
  }
  100% {
    transform: scale(0) rotate(360deg);
    opacity: 0;
  }
}

/* ============================================
   CONTAINER & LAYOUT
   ============================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--spacing-md);
  position: relative;
  z-index: 10;
}

.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-md);
}

/* ============================================
   TYPOGRAPHY STYLES
   ============================================ */
h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--color-accent);
  text-align: center;
  margin-bottom: var(--spacing-md);
  text-shadow: 2px 2px 4px rgba(255, 107, 157, 0.2);
  animation: fade-in-down 1s ease;
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--color-primary);
  text-align: center;
  margin-bottom: var(--spacing-sm);
}

h3 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--color-dark-pink);
  margin-bottom: var(--spacing-sm);
}

p {
  line-height: 1.8;
  color: #555;
  margin-bottom: var(--spacing-sm);
}

/* ============================================
   BUTTON STYLES
   Beautiful animated buttons
   ============================================ */
.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  font-size: 1.2rem;
  font-family: var(--font-body);
  font-weight: bold;
  text-decoration: none;
  color: var(--color-white);
  background: var(--gradient-sunset);
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
  z-index: -1;
}

.btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: var(--shadow-strong);
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn:active {
  transform: translateY(-1px) scale(1.02);
}

/* Button Animation - Bounce */
@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.btn-bounce {
  animation: bounce 2s infinite ease-in-out;
}

/* Button with glow effect */
.btn-glow {
  animation: glow-pulse 2s infinite ease-in-out;
}

@keyframes glow-pulse {
  0%, 100% {
    box-shadow: 0 0 20px rgba(255, 107, 157, 0.5);
  }
  50% {
    box-shadow: 0 0 40px rgba(255, 107, 157, 0.8);
  }
}

/* ============================================
   CARD STYLES
   Beautiful cards with hover effects
   ============================================ */
.card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--spacing-md);
  box-shadow: var(--shadow-soft);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity var(--transition-normal);
  z-index: -1;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-strong);
}

.card:hover::before {
  opacity: 0.05;
}

/* ============================================
   ANIMATIONS - ENTRANCE EFFECTS
   ============================================ */
@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in-down {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scale-in {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pop-in {
  0% {
    opacity: 0;
    transform: scale(0);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.fade-in {
  animation: fade-in 1s ease;
}

.fade-in-up {
  animation: fade-in-up 0.8s ease;
}

.scale-in {
  animation: scale-in 0.6s ease;
}

.pop-in {
  animation: pop-in 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ============================================
   NAVIGATION LINKS
   Styled like cute stickers/wax seals
   ============================================ */
.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
  justify-content: center;
  margin-top: var(--spacing-lg);
}

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.5rem;
  background: var(--color-white);
  border: 3px solid var(--color-primary);
  border-radius: var(--radius-full);
  text-decoration: none;
  color: var(--color-primary);
  font-weight: bold;
  font-size: 1rem;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-soft);
  position: relative;
}

.nav-link::after {
  content: '💕';
  position: absolute;
  top: -10px;
  right: -10px;
  font-size: 1.5rem;
  opacity: 0;
  transform: scale(0);
  transition: all var(--transition-fast);
}

.nav-link:hover {
  background: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-3px) rotate(2deg);
  box-shadow: var(--shadow-medium);
}

.nav-link:hover::after {
  opacity: 1;
  transform: scale(1) rotate(-10deg);
}

/* ============================================
   MODAL/LIGHTBOX STYLES
   ============================================ */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(5px);
}

.modal.active {
  display: flex;
  animation: fade-in 0.3s ease;
}

.modal-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--spacing-md);
  box-shadow: var(--shadow-strong);
  animation: scale-in 0.4s ease;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  background: var(--color-accent);
  color: var(--color-white);
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  transform: rotate(90deg) scale(1.1);
  background: var(--color-dark-pink);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
  :root {
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
  }
  
  .container {
    padding: var(--spacing-sm);
  }
  
  .nav-links {
    flex-direction: column;
    align-items: stretch;
  }
  
  .nav-link {
    width: 100%;
  }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-center {
  text-align: center;
}

.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }

.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }

.hidden {
  display: none !important;
}

.visible {
  display: block !important;
}