/* ============================================
   VALENTINE GIFT - Y2K REVIVAL AESTHETIC
   Lavender + Soft Pink + Chrome Accents
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
  /* Primary Colors */
  --lavender: #C8A2D3;
  --lavender-light: #E8D5F0;
  --lavender-dark: #9B6BA8;
  
  /* Secondary Colors */
  --pink-soft: #F4B8C5;
  --pink-blush: #FFE4EC;
  --pink-hot: #FF69B4;
  
  /* Chrome/Metallic Effect */
  --chrome-light: #E8E8E8;
  --chrome-mid: #C0C0C0;
  --chrome-dark: #A8A8A8;
  --chrome-gradient: linear-gradient(135deg, #E8E8E8 0%, #C0C0C0 25%, #A8A8A8 50%, #C0C0C0 75%, #E8E8E8 100%);
  
  /* Neutrals */
  --white: #FFFFFF;
  --cream: #FFF9FB;
  --charcoal: #2D2D2D;
  --text-primary: #3D3D3D;
  --text-secondary: #6B6B6B;
  
  /* Accents */
  --star-gold: #FFD700;
  --success: #7ED8A6;
  --error: #FF6B6B;
  
  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  
  /* Typography */
  --font-display: 'Outfit', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  
  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-soft: 0 4px 20px rgba(200, 162, 211, 0.15);
  --shadow-medium: 0 8px 30px rgba(200, 162, 211, 0.25);
  --shadow-glow: 0 0 30px rgba(200, 162, 211, 0.4);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--cream);
  overflow-x: hidden;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
}

h1 { font-size: clamp(2.5rem, 6vw, 4rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.5rem); }

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.3s ease;
}

/* ---------- Background Pattern ---------- */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 20% 80%, rgba(200, 162, 211, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(244, 184, 197, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(200, 162, 211, 0.05) 0%, transparent 30%);
  pointer-events: none;
  z-index: -1;
}

/* ---------- Header / Navigation ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 249, 251, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--lavender-light);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: var(--space-md) var(--space-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--lavender) 0%, var(--pink-hot) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--chrome-gradient);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  -webkit-text-fill-color: initial;
  box-shadow: 
    inset 0 2px 4px rgba(255,255,255,0.8),
    inset 0 -2px 4px rgba(0,0,0,0.1),
    0 2px 8px rgba(0,0,0,0.1);
}

.nav-links {
  display: flex;
  gap: var(--space-lg);
  list-style: none;
}

.nav-links a {
  font-weight: 500;
  color: var(--text-secondary);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-full);
  transition: all 0.3s ease;
}

.nav-links a:hover {
  color: var(--lavender-dark);
  background: var(--lavender-light);
}

.nav-links a.active {
  color: var(--white);
  background: linear-gradient(135deg, var(--lavender) 0%, var(--pink-soft) 100%);
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--lavender-dark);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* ---------- Hero Section ---------- */
.hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-3xl) var(--space-xl);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--lavender-light) 0%, transparent 70%);
  top: -200px;
  right: -200px;
  animation: float 8s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--pink-blush) 0%, transparent 70%);
  bottom: -100px;
  left: -100px;
  animation: float 6s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -30px) scale(1.05); }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: var(--chrome-gradient);
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
  box-shadow: 
    inset 0 2px 4px rgba(255,255,255,0.9),
    inset 0 -2px 4px rgba(0,0,0,0.1),
    0 4px 15px rgba(0,0,0,0.1);
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { box-shadow: inset 0 2px 4px rgba(255,255,255,0.9), inset 0 -2px 4px rgba(0,0,0,0.1), 0 4px 15px rgba(0,0,0,0.1); }
  50% { box-shadow: inset 0 2px 4px rgba(255,255,255,1), inset 0 -2px 4px rgba(0,0,0,0.05), 0 4px 25px rgba(200,162,211,0.3); }
}

.hero-title {
  margin-bottom: var(--space-lg);
  color: var(--charcoal);
}

.hero-title .highlight {
  background: linear-gradient(135deg, var(--lavender) 0%, var(--pink-hot) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-2xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Countdown Timer */
.countdown {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
}

.countdown-item {
  background: var(--white);
  border: 2px solid var(--lavender-light);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  min-width: 80px;
  box-shadow: var(--shadow-soft);
}

.countdown-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--lavender-dark);
  display: block;
}

.countdown-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--lavender) 0%, var(--pink-soft) 100%);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(200, 162, 211, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(200, 162, 211, 0.5);
}

.btn-secondary {
  background: var(--chrome-gradient);
  color: var(--text-primary);
  box-shadow: 
    inset 0 2px 4px rgba(255,255,255,0.8),
    inset 0 -2px 4px rgba(0,0,0,0.1),
    0 4px 15px rgba(0,0,0,0.1);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 
    inset 0 2px 4px rgba(255,255,255,0.9),
    inset 0 -2px 4px rgba(0,0,0,0.1),
    0 8px 25px rgba(0,0,0,0.15);
}

.hero-buttons {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Category Navigation ---------- */
.categories {
  padding: var(--space-3xl) var(--space-xl);
  max-width: 1400px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.section-title {
  color: var(--charcoal);
  margin-bottom: var(--space-sm);
}

.section-subtitle {
  color: var(--text-secondary);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-lg);
}

.category-card {
  background: var(--white);
  border: 2px solid var(--lavender-light);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--lavender-light) 0%, var(--pink-blush) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-medium);
  border-color: var(--lavender);
}

.category-card:hover::before {
  opacity: 0.3;
}

.category-icon {
  position: relative;
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
  display: block;
}

.category-name {
  position: relative;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: var(--space-xs);
}

.category-count {
  position: relative;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* ---------- Product Grid ---------- */
.products-section {
  padding: var(--space-3xl) var(--space-xl);
  background: linear-gradient(180deg, var(--cream) 0%, var(--white) 100%);
}

.products-container {
  max-width: 1400px;
  margin: 0 auto;
}

/* Filters */
.filters {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
  flex-wrap: wrap;
  justify-content: center;
}

.filter-btn {
  padding: var(--space-sm) var(--space-lg);
  border: 2px solid var(--lavender-light);
  border-radius: var(--radius-full);
  background: var(--white);
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover {
  border-color: var(--lavender);
  color: var(--lavender-dark);
}

.filter-btn.active {
  background: linear-gradient(135deg, var(--lavender) 0%, var(--pink-soft) 100%);
  border-color: transparent;
  color: var(--white);
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-xl);
}

/* Product Card */
.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: all 0.3s ease;
  position: relative;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-medium);
}

.product-image-container {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--lavender-light);
}

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

.product-card:hover .product-image {
  transform: scale(1.05);
}

.product-badge {
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
  background: var(--chrome-gradient);
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  box-shadow: 
    inset 0 1px 2px rgba(255,255,255,0.8),
    0 2px 8px rgba(0,0,0,0.1);
}

.product-wishlist {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  width: 40px;
  height: 40px;
  background: var(--white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.product-wishlist:hover {
  background: var(--pink-blush);
  transform: scale(1.1);
}

.product-info {
  padding: var(--space-lg);
}

.product-retailer {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--lavender-dark);
  margin-bottom: var(--space-xs);
}

.product-name {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: var(--space-sm);
  line-height: 1.3;
}

.product-description {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-price {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--charcoal);
}

.product-rating {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.product-rating .star {
  color: var(--star-gold);
}

.product-cta {
  display: block;
  width: 100%;
  margin-top: var(--space-md);
  padding: var(--space-md);
  background: linear-gradient(135deg, var(--lavender) 0%, var(--pink-soft) 100%);
  color: var(--white);
  text-align: center;
  border-radius: var(--radius-md);
  font-weight: 600;
  transition: all 0.3s ease;
}

.product-cta:hover {
  box-shadow: 0 4px 20px rgba(200, 162, 211, 0.4);
}

/* ---------- Featured Section ---------- */
.featured {
  padding: var(--space-3xl) var(--space-xl);
  background: linear-gradient(135deg, var(--lavender-light) 0%, var(--pink-blush) 100%);
}

.featured-container {
  max-width: 1400px;
  margin: 0 auto;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-xl);
}

.featured-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-align: center;
  box-shadow: var(--shadow-soft);
  transition: all 0.3s ease;
}

.featured-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-medium);
}

.featured-icon {
  width: 64px;
  height: 64px;
  background: var(--chrome-gradient);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin: 0 auto var(--space-lg);
  box-shadow: 
    inset 0 2px 4px rgba(255,255,255,0.8),
    inset 0 -2px 4px rgba(0,0,0,0.1),
    0 4px 15px rgba(0,0,0,0.1);
}

.featured-title {
  margin-bottom: var(--space-sm);
}

.featured-text {
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
}

/* ---------- Gift Finder Quiz CTA ---------- */
.quiz-cta {
  padding: var(--space-3xl) var(--space-xl);
  text-align: center;
}

.quiz-container {
  max-width: 800px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-3xl);
  box-shadow: var(--shadow-medium);
  position: relative;
  overflow: hidden;
}

.quiz-container::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, var(--lavender-light) 0%, transparent 70%);
  pointer-events: none;
}

.quiz-content {
  position: relative;
}

.quiz-title {
  margin-bottom: var(--space-md);
}

.quiz-text {
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
  font-size: 1.125rem;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--charcoal);
  color: var(--white);
  padding: var(--space-3xl) var(--space-xl) var(--space-xl);
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.footer-brand .logo {
  margin-bottom: var(--space-md);
}

.footer-brand p {
  color: var(--chrome-mid);
  font-size: 0.875rem;
}

.footer-title {
  font-size: 1rem;
  margin-bottom: var(--space-md);
  color: var(--white);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: var(--space-sm);
}

.footer-links a {
  color: var(--chrome-mid);
  font-size: 0.875rem;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--lavender-light);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: var(--space-xl);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer-legal {
  font-size: 0.75rem;
  color: var(--chrome-dark);
}

.footer-social {
  display: flex;
  gap: var(--space-md);
}

.footer-social a {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.footer-social a:hover {
  background: var(--lavender);
  transform: translateY(-2px);
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: var(--space-lg);
    border-bottom: 1px solid var(--lavender-light);
    box-shadow: var(--shadow-soft);
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .nav-toggle {
    display: flex;
  }
  
  .hero {
    min-height: 70vh;
    padding: var(--space-2xl) var(--space-md);
  }
  
  .countdown {
    gap: var(--space-sm);
  }
  
  .countdown-item {
    padding: var(--space-sm) var(--space-md);
    min-width: 60px;
  }
  
  .countdown-number {
    font-size: 1.5rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .categories, .products-section, .featured, .quiz-cta {
    padding: var(--space-2xl) var(--space-md);
  }
  
  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: var(--space-md);
  }
  
  .quiz-container {
    padding: var(--space-xl);
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

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

.fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

/* ---------- Utility Classes ---------- */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.text-center { text-align: center; }
.text-gradient {
  background: linear-gradient(135deg, var(--lavender) 0%, var(--pink-hot) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------- Modal ---------- */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  background: var(--white);
  margin: 5% auto;
  padding: var(--space-3xl);
  border-radius: var(--radius-lg);
  max-width: 600px;
  width: 90%;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3);
  position: relative;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-close {
  position: absolute;
  top: var(--space-lg);
  right: var(--space-lg);
  color: var(--text-secondary);
  font-size: 2rem;
  font-weight: 300;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.modal-close:hover,
.modal-close:focus {
  color: var(--charcoal);
  background: var(--lavender-light);
}

.modal-title {
  margin-bottom: var(--space-sm);
  color: var(--charcoal);
}

.modal-subtitle {
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
}

.quiz-form {
  margin-top: var(--space-xl);
}

@media (max-width: 768px) {
  .modal-content {
    margin: 10% auto;
    padding: var(--space-xl);
    width: 95%;
  }
}
