/* ===================================================
   WEDDING COUNTDOWN SECTION
   Udhaya & Pavi — May 29, 2026
   Romantic · Premium · Tamil Wedding Aesthetic
   =================================================== */

/* ---- Section Base ---- */
.wcd-section {
  position: relative;
  width: 100%;
  padding: 80px 24px 70px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;

  /* Layered romantic green-ivory gradient */
  background:
    radial-gradient(ellipse at 15% 25%, rgba(163, 210, 160, 0.22) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 75%, rgba(200, 150, 10, 0.09) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(244, 250, 244, 0.95) 0%, #eef7ef 60%, #d4e8d5 100%);
}

/* ---- Ambient blurred floral glows ---- */
.wcd-glow-top-left {
  position: absolute;
  top: -60px;
  left: -60px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(107, 155, 120, 0.28) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(48px);
  pointer-events: none;
  z-index: 0;
  animation: wcdGlowDrift 8s ease-in-out infinite alternate;
}

.wcd-glow-bottom-right {
  position: absolute;
  bottom: -40px;
  right: -40px;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(200, 150, 10, 0.18) 0%, transparent 65%);
  border-radius: 50%;
  filter: blur(44px);
  pointer-events: none;
  z-index: 0;
  animation: wcdGlowDrift 10s ease-in-out infinite alternate-reverse;
}

.wcd-glow-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 280px;
  background: radial-gradient(ellipse, rgba(167, 196, 160, 0.14) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}

@keyframes wcdGlowDrift {
  from { transform: scale(1) translate(0, 0); }
  to   { transform: scale(1.15) translate(12px, -12px); }
}

/* ---- Floating hearts / sparkles ---- */
.wcd-floats {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.wcd-float-item {
  position: absolute;
  font-size: 16px;
  opacity: 0;
  animation: wcdFloatUp linear infinite;
}

@keyframes wcdFloatUp {
  0%   { transform: translateY(100%) scale(0.6) rotate(0deg); opacity: 0; }
  10%  { opacity: 0.7; }
  50%  { transform: translateY(40%) scale(1) rotate(15deg); opacity: 0.5; }
  90%  { opacity: 0.2; }
  100% { transform: translateY(-20%) scale(0.8) rotate(-10deg); opacity: 0; }
}

/* ---- Floral corner decorations ---- */
.wcd-corner {
  position: absolute;
  font-size: clamp(28px, 4vw, 44px);
  opacity: 0.22;
  pointer-events: none;
  z-index: 1;
  line-height: 1;
  filter: drop-shadow(0 0 8px rgba(53, 94, 59, 0.3));
}

.wcd-corner-tl { top: 18px;  left: 18px;  transform: rotate(0deg); }
.wcd-corner-tr { top: 18px;  right: 18px; transform: rotate(90deg); }
.wcd-corner-bl { bottom: 18px; left: 18px;  transform: rotate(270deg); }
.wcd-corner-br { bottom: 18px; right: 18px; transform: rotate(180deg); }

/* ---- Content wrapper (z-index above glows) ---- */
.wcd-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 860px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;

  opacity: 0;
  transform: translateY(28px);
  animation: wcdFadeUp 1s cubic-bezier(0.34, 1.4, 0.64, 1) 0.25s forwards;
}

@keyframes wcdFadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ---- Header area ---- */
.wcd-header {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

/* Ring + heart icon cluster */
.wcd-icon-cluster {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
}

.wcd-ring-icon,
.wcd-heart-icon {
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  animation: wcdIconPulse 2.4s ease-in-out infinite;
}

.wcd-heart-icon {
  color: #c05070;
  animation-delay: 0.4s;
}

.wcd-ring-icon {
  filter: drop-shadow(0 0 6px rgba(200, 150, 10, 0.5));
}

@keyframes wcdIconPulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.18); }
}

/* Main heading */
.wcd-main-heading {
  font-family: 'Great Vibes', 'Dancing Script', cursive;
  font-size: clamp(2.4rem, 7vw, 4.2rem);
  color: #1a3c22;
  line-height: 1.1;
  letter-spacing: 0.02em;
  text-shadow:
    0 3px 18px rgba(53, 94, 59, 0.18),
    0 1px 4px rgba(0, 0, 0, 0.08);
  margin: 0;
}

/* Gold shine sweep animation on heading */
.wcd-main-heading span {
  background: linear-gradient(
    90deg,
    #1a3c22 0%,
    #355e3b 35%,
    #c8960a 50%,
    #355e3b 65%,
    #1a3c22 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: wcdShine 4s linear infinite;
}

@keyframes wcdShine {
  0%   { background-position: 200% center; }
  100% { background-position: -200% center; }
}

/* Subtitle / save the date line */
.wcd-subtitle {
  font-family: 'Cinzel', 'Playfair Display', serif;
  font-size: clamp(0.75rem, 2vw, 0.95rem);
  color: #355e3b;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.8;
  margin: 0;
}

/* Ornamental divider under heading */
.wcd-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 14px;
  margin-top: 4px;
}

.wcd-orn-line {
  display: block;
  width: clamp(50px, 12vw, 100px);
  height: 1.5px;
  background: linear-gradient(90deg, transparent, #c8960a, transparent);
  border-radius: 2px;
}

.wcd-orn-gem {
  font-size: 1rem;
  color: #c8960a;
  filter: drop-shadow(0 0 6px rgba(200, 150, 10, 0.5));
  animation: wcdIconPulse 3s ease-in-out infinite;
}

/* ---- Countdown grid ---- */
.wcd-grid {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  justify-content: center;
  gap: clamp(12px, 3vw, 28px);
  flex-wrap: nowrap;
  width: 100%;
}

/* ---- Individual countdown card ---- */
.wcd-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: clamp(18px, 3vw, 32px) clamp(14px, 2.5vw, 28px);
  min-width: clamp(70px, 18vw, 140px);
  flex: 1;
  max-width: 160px;

  /* Glassmorphism */
  background: rgba(255, 255, 255, 0.52);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  border-radius: 20px;
  box-shadow:
    0 8px 32px rgba(53, 94, 59, 0.12),
    0 2px 8px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);

  /* Pulse animation */
  animation: wcdCardPulse 3s ease-in-out infinite;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.35s ease;
  cursor: default;
}

.wcd-card:nth-child(1) { animation-delay: 0s; }
.wcd-card:nth-child(2) { animation-delay: 0.15s; }
.wcd-card:nth-child(3) { animation-delay: 0.3s; }
.wcd-card:nth-child(4) { animation-delay: 0.45s; }

@keyframes wcdCardPulse {
  0%, 100% { box-shadow: 0 8px 32px rgba(53, 94, 59, 0.12), 0 2px 8px rgba(0,0,0,0.06), inset 0 1px 0 rgba(255,255,255,0.8); }
  50%       { box-shadow: 0 12px 40px rgba(53, 94, 59, 0.22), 0 4px 16px rgba(200,150,10,0.1), inset 0 1px 0 rgba(255,255,255,0.9); }
}

.wcd-card:hover {
  transform: translateY(-7px) scale(1.04);
  box-shadow:
    0 18px 52px rgba(53, 94, 59, 0.22),
    0 6px 20px rgba(200, 150, 10, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* Gold top accent line on card */
.wcd-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20%;
  width: 60%;
  height: 2.5px;
  background: linear-gradient(90deg, transparent, #c8960a, transparent);
  border-radius: 0 0 3px 3px;
  opacity: 0.7;
}

/* Number */
.wcd-number {
  font-family: 'Cinzel', 'Playfair Display', serif;
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 700;
  color: #1a3c22;
  line-height: 1;
  letter-spacing: -0.02em;
  text-shadow:
    0 2px 12px rgba(53, 94, 59, 0.18),
    0 1px 3px rgba(0, 0, 0, 0.1);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.wcd-number.wcd-flip {
  transform: scale(1.18);
  color: #355e3b;
}

/* Label */
.wcd-label {
  font-family: 'Cinzel', serif;
  font-size: clamp(0.58rem, 1.6vw, 0.72rem);
  font-weight: 400;
  color: #2d4a36;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-top: 2px;
}

/* Colon separator */
.wcd-sep {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  justify-content: center;
  padding-bottom: 22px; /* align with number baseline */
}

.wcd-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #c8960a;
  opacity: 0.6;
  animation: wcdDotBlink 1s ease-in-out infinite alternate;
  box-shadow: 0 0 6px rgba(200, 150, 10, 0.4);
}

.wcd-dot:last-child { animation-delay: 0.5s; }

@keyframes wcdDotBlink {
  from { opacity: 0.25; transform: scale(0.85); }
  to   { opacity: 0.8;  transform: scale(1.15); }
}

/* ---- "Married!" state ---- */
.wcd-married-msg {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.wcd-married-msg.wcd-visible {
  display: flex;
}

.wcd-married-text {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(2.8rem, 8vw, 5rem);
  color: #355e3b;
  text-shadow: 0 2px 16px rgba(53, 94, 59, 0.2);
  animation: wcdFadeUp 1s ease forwards;
}

.wcd-married-sub {
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  color: #c8960a;
  text-transform: uppercase;
}

/* ---- Bottom floral signature ---- */
.wcd-footer-decor {
  display: flex;
  align-items: center;
  gap: 16px;
  opacity: 0;
  animation: wcdFadeIn 1.2s ease 1s forwards;
}

@keyframes wcdFadeIn {
  to { opacity: 1; }
}

.wcd-footer-line {
  display: block;
  width: clamp(60px, 14vw, 150px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(53, 94, 59, 0.4), transparent);
  border-radius: 2px;
}

.wcd-footer-flower {
  font-size: 1.4rem;
  color: #355e3b;
  opacity: 0.55;
  animation: wcdIconPulse 4s ease-in-out infinite;
}

/* ---- Responsive ---- */
@media (max-width: 600px) {
  .wcd-section {
    padding: 56px 14px 52px;
  }

  .wcd-grid {
    gap: 8px;
  }

  .wcd-card {
    padding: 16px 10px;
    border-radius: 16px;
    min-width: 0;
  }

  .wcd-sep {
    padding-bottom: 18px;
    gap: 8px;
  }

  .wcd-corner {
    font-size: 22px;
    opacity: 0.16;
  }
}

@media (max-width: 400px) {
  .wcd-section {
    padding: 44px 10px 44px;
  }

  .wcd-grid {
    gap: 5px;
  }

  .wcd-card {
    padding: 13px 7px;
    border-radius: 13px;
  }

  .wcd-number {
    font-size: 2rem;
  }

  .wcd-label {
    font-size: 0.52rem;
    letter-spacing: 0.12em;
  }

  .wcd-dot {
    width: 4px;
    height: 4px;
  }
}
