/* =====================================================
   CLARISSA CUNHA — WEDDING LOADER STYLES
   Tela de carregamento premium para casamentos
   ===================================================== */

.cc-wedding-loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: linear-gradient(135deg, #2A2F3A 0%, #1a1d24 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 600ms cubic-bezier(0.22, 1, 0.36, 1);
}

.cc-wedding-loader.is-visible {
  opacity: 1;
}

.cc-wedding-loader.is-done {
  opacity: 0;
  pointer-events: none;
}

/* ===== CONTENT ===== */
.cc-wedding-loader__content {
  max-width: 600px;
  padding: 40px;
  text-align: center;
  position: relative;
}

/* ===== ANIMATED HEARTS ===== */
.cc-wedding-loader__hearts {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.heart {
  position: absolute;
  font-size: 24px;
  color: rgba(251, 247, 241, 0.15);
  animation: floatHeart 4s ease-in-out infinite;
  opacity: 0;
}

.heart-1 {
  left: 10%;
  top: 20%;
  animation-delay: 0s;
  animation-duration: 5s;
}

.heart-2 {
  left: 80%;
  top: 30%;
  animation-delay: 1s;
  animation-duration: 6s;
  font-size: 32px;
}

.heart-3 {
  left: 20%;
  top: 70%;
  animation-delay: 2s;
  animation-duration: 5.5s;
  font-size: 20px;
}

.heart-4 {
  left: 70%;
  top: 60%;
  animation-delay: 1.5s;
  animation-duration: 6.5s;
  font-size: 28px;
}

.heart-5 {
  left: 50%;
  top: 10%;
  animation-delay: 0.5s;
  animation-duration: 5s;
  font-size: 26px;
}

@keyframes floatHeart {
  0% {
    opacity: 0;
    transform: translateY(0) scale(0.8) rotate(0deg);
  }
  20% {
    opacity: 0.6;
  }
  50% {
    opacity: 0.8;
    transform: translateY(-30px) scale(1) rotate(10deg);
  }
  80% {
    opacity: 0.4;
  }
  100% {
    opacity: 0;
    transform: translateY(-60px) scale(0.9) rotate(-10deg);
  }
}

/* ===== TITLE ===== */
.cc-wedding-loader__title {
  font-family: var(--ff-display, 'Cormorant Garamond', serif);
  font-weight: 300;
  font-size: clamp(24px, 5vw, 42px);
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--cc-cream, #FBF7F1);
  margin-bottom: 48px;
  position: relative;
  z-index: 1;
}

.cc-wedding-loader__title .line {
  display: block;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 800ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.line-1 {
  animation-delay: 200ms;
}

.line-2 {
  animation-delay: 400ms;
  font-style: italic;
  color: rgba(251, 247, 241, 0.9);
}

.line-3 {
  animation-delay: 600ms;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== PROGRESS BAR ===== */
.cc-wedding-loader__progress {
  width: 100%;
  height: 3px;
  background: rgba(251, 247, 241, 0.1);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, 
    rgba(251, 247, 241, 0.6) 0%, 
    rgba(251, 247, 241, 0.9) 50%, 
    rgba(251, 247, 241, 0.6) 100%
  );
  border-radius: 3px;
  transition: width 30ms linear;
  box-shadow: 0 0 20px rgba(251, 247, 241, 0.4);
}

/* ===== SUBTITLE ===== */
.cc-wedding-loader__subtitle {
  font-family: var(--ff-sans, 'Jost', sans-serif);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(251, 247, 241, 0.5);
  opacity: 0;
  animation: fadeIn 600ms ease-out 1s forwards;
  position: relative;
  z-index: 1;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* ===== MOBILE OPTIMIZATIONS ===== */
@media (max-width: 600px) {
  .cc-wedding-loader__content {
    padding: 24px;
  }
  
  .cc-wedding-loader__title {
    font-size: clamp(20px, 6vw, 32px);
    margin-bottom: 40px;
  }
  
  .heart {
    font-size: 20px;
  }
  
  .heart-2 {
    font-size: 26px;
  }
  
  .heart-4 {
    font-size: 24px;
  }
  
  .heart-5 {
    font-size: 22px;
  }
  
  .cc-wedding-loader__subtitle {
    font-size: 10px;
  }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
  .cc-wedding-loader,
  .cc-wedding-loader__title .line,
  .cc-wedding-loader__subtitle,
  .heart {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  
  .cc-wedding-loader.is-visible {
    opacity: 1;
  }
  
  .cc-wedding-loader.is-done {
    opacity: 0;
  }
}
