/* 🎄❄️ CUPCAKES ON THE AVENUE - WINTER CHRISTMAS THEME ❄️🎄 */

/* ============================================
   GLOBAL WINTER STYLES
   ============================================ */

body {
  position: relative;
  overflow-x: hidden;
  background: linear-gradient(180deg, 
    #1a0a2e 0%,
    #2d1b4e 20%,
    #3d2963 40%,
    #4a3570 60%,
    #5a4282 80%,
    #6b5094 100%
  );
  background-attachment: fixed;
  min-height: 100vh;
}

/* Animated Snowfall Overlay */
body::before {
  content: '❄️ ✨ 🎄 ❄️ ✨ 🎄 ❄️ ✨ 🎄 ❄️ ✨ 🎄 ❄️ ✨ 🎄 ❄️ ✨ 🎄';
  position: fixed;
  top: 0;
  left: 0;
  width: 200%;
  height: 100%;
  font-size: 30px;
  pointer-events: none;
  z-index: 1;
  opacity: 0.3;
  animation: snowfall 20s linear infinite;
  line-height: 100px;
  letter-spacing: 50px;
}

@keyframes snowfall {
  0% { transform: translateY(-100%) translateX(0); }
  100% { transform: translateY(100vh) translateX(-50px); }
}

/* ============================================
   FROSTED GLASS EFFECT
   ============================================ */

main,
section,
.container,
.content-wrapper,
.policy-content,
.terms-content,
.success-container,
.error-container {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border-radius: 20px;
  padding: 40px;
  margin: 20px auto;
  position: relative;
  z-index: 2;
}

/* ============================================
   HEADER WITH CHRISTMAS LIGHTS
   ============================================ */

header {
  position: relative;
  border-bottom: 3px solid #ffd700;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
}

header::after {
  content: '🔴 🟢 🔵 🟡 🔴 🟢 🔵 🟡 🔴 🟢 🔵 🟡 🔴 🟢 🔵 🟡';
  position: absolute;
  bottom: -15px;
  left: 0;
  width: 100%;
  font-size: 20px;
  text-align: center;
  animation: lights-twinkle 2s infinite;
  z-index: 100;
}

@keyframes lights-twinkle {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* ============================================
   FESTIVE HEADINGS
   ============================================ */

h1, h2, h3 {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  display: inline-block;
}

h1::before, h2::before {
  content: '🎄';
  position: absolute;
  left: -40px;
  animation: sway 3s ease-in-out infinite;
  -webkit-text-fill-color: initial;
}

h1::after, h2::after {
  content: '🎄';
  position: absolute;
  right: -40px;
  animation: sway 3s ease-in-out infinite;
  animation-delay: 1.5s;
  -webkit-text-fill-color: initial;
}

@keyframes sway {
  0%, 100% { transform: rotate(-5deg); }
  50% { transform: rotate(5deg); }
}

/* ============================================
   FESTIVE BUTTONS
   ============================================ */

button,
.btn,
.button,
a.btn-primary,
input[type="submit"] {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: 2px solid #ffd700;
  position: relative;
  overflow: hidden;
  color: white;
  transition: all 0.3s ease;
}

button::before,
.btn::before,
.button::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
  100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

button:hover,
.btn:hover,
.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

/* ============================================
   WINTER INPUT FIELDS
   ============================================ */

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="number"],
textarea,
select {
  border: 2px solid rgba(102, 126, 234, 0.3);
  background: rgba(255, 255, 255, 0.95);
  transition: all 0.3s ease;
  border-radius: 10px;
  padding: 12px;
}

input:focus,
textarea:focus,
select:focus {
  border-color: #667eea;
  box-shadow: 0 0 20px rgba(102, 126, 234, 0.3);
  outline: none;
}

/* ============================================
   FOOTER WITH SNOW
   ============================================ */

footer {
  position: relative;
  background: linear-gradient(180deg, #2d1b4e 0%, #1a0a2e 100%);
  color: white;
  margin-top: 60px;
}

footer::before {
  content: '❄️ ❄️ ❄️ ❄️ ❄️ ❄️ ❄️ ❄️ ❄️ ❄️ ❄️ ❄️';
  position: absolute;
  top: -30px;
  left: 0;
  width: 100%;
  font-size: 30px;
  text-align: center;
  animation: gentle-snow 15s linear infinite;
}

@keyframes gentle-snow {
  0% { transform: translateY(0) translateX(0); }
  100% { transform: translateY(20px) translateX(20px); }
}

/* ============================================
   SUCCESS/ERROR PAGES
   ============================================ */

.success-icon,
.error-icon {
  font-size: 80px;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

.success-container {
  border: 3px solid #4caf50;
}

.error-container {
  border: 3px solid #f44336;
}

/* ============================================
   SPARKLE EFFECTS
   ============================================ */

.sparkle::after {
  content: '✨';
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 24px;
  opacity: 0;
  animation: sparkle 2s infinite;
}

@keyframes sparkle {
  0%, 100% { 
    opacity: 0;
    transform: scale(0) rotate(0deg);
  }
  50% { 
    opacity: 1;
    transform: scale(1.2) rotate(180deg);
  }
}

/* ============================================
   RESPONSIVE WINTER THEME
   ============================================ */

@media (max-width: 768px) {
  body::before {
    font-size: 20px;
    line-height: 80px;
    letter-spacing: 30px;
  }
  
  header::after {
    font-size: 16px;
    bottom: -12px;
  }
  
  h1::before, h1::after,
  h2::before, h2::after {
    display: none;
  }
  
  main,
  section,
  .container {
    padding: 20px;
    margin: 10px;
  }
  
  footer::before {
    font-size: 20px;
  }
}

/* ============================================
   PRINT STYLES (Remove winter theme)
   ============================================ */

@media print {
  body::before,
  header::after,
  footer::before,
  h1::before, h1::after,
  h2::before, h2::after {
    display: none;
  }
  
  body {
    background: white;
  }
}