/**
 * Oralyze Luxury Editorial Countdown Timer Stylesheet
 * High-end typography, smooth digit animations, responsive layouts
 */

.oralyze-countdown-wrapper {
  position: relative;
  width: 100%;
  box-sizing: border-box;
  font-family: var(--font-primary, 'Mona Sans', sans-serif);
}

/* Background Presets */
.oralyze-countdown-section {
  position: relative;
  padding: 80px 24px;
  background-color: #1A1A1A;
  color: #FAFAF8;
  border-radius: 0;
  overflow: hidden;
}

.oralyze-countdown-section.theme-sand {
  background-color: #F4EFEA;
  color: #1A1A1A;
}

.oralyze-countdown-section.theme-ivory {
  background-color: #FAFAF8;
  color: #1A1A1A;
}

.countdown-inner-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* Decorative Ambient Glow / Scrim */
.countdown-ambient-glow {
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(23, 63, 214, 0.12) 0%, rgba(0, 0, 0, 0) 70%);
  pointer-events: none;
  z-index: 1;
}

/* 1. LAYOUT: CENTERED LUXURY BANNER */
.countdown-layout-centered {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Eyebrow & Highlight Tag */
.countdown-tag-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.countdown-eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 700;
  color: #9C9488;
}

.countdown-highlight-pill {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  padding: 4px 12px;
  background-color: #C9302C;
  color: #FFFFFF;
  border-radius: 20px;
}

/* Main Heading with Serif Accent */
.countdown-title {
  font-family: var(--font-primary, 'Mona Sans', sans-serif);
  font-size: clamp(32px, 4.5vw, 54px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 16px 0;
  max-width: 820px;
}

.countdown-title em,
.countdown-title .serif-accent {
  font-family: 'Instrument Serif', 'Playfair Display', serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
  color: inherit;
}

.countdown-description {
  font-size: clamp(14px, 1.2vw, 17px);
  line-height: 1.6;
  color: #A0988E;
  max-width: 640px;
  margin: 0 auto 36px auto;
}

.theme-sand .countdown-description,
.theme-ivory .countdown-description {
  color: #635C53;
}

/* 2. TIMER DIGIT BLOCKS */
.countdown-timer-grid {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 40px;
}

.countdown-unit-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 90px;
  padding: 20px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.theme-sand .countdown-unit-box,
.theme-ivory .countdown-unit-box {
  background: #FFFFFF;
  border: 1px solid #E6E0D6;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.countdown-unit-box:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.25);
}

.countdown-digit {
  font-family: var(--font-primary, 'Mona Sans', sans-serif);
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: inherit;
  font-variant-numeric: tabular-nums;
  margin-bottom: 8px;
}

.countdown-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
  color: #8C8479;
}

.countdown-separator {
  font-family: var(--font-primary, 'Mona Sans', sans-serif);
  font-size: 32px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: 24px;
}

.theme-sand .countdown-separator,
.theme-ivory .countdown-separator {
  color: rgba(26, 26, 26, 0.25);
}

/* 3. CALL TO ACTION BUTTONS */
.countdown-cta-row {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.countdown-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 32px;
  background-color: #FAFAF8;
  color: #1A1A1A;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 8px;
  letter-spacing: 0.02em;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.theme-sand .countdown-btn-primary,
.theme-ivory .countdown-btn-primary {
  background-color: #1A1A1A;
  color: #FFFFFF;
}

.countdown-btn-primary:hover {
  background-color: #E2DBD2;
  color: #1A1A1A;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.theme-sand .countdown-btn-primary:hover,
.theme-ivory .countdown-btn-primary:hover {
  background-color: #000000;
  color: #FFFFFF;
}

.countdown-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  background-color: transparent;
  color: inherit;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  letter-spacing: 0.02em;
  transition: all 0.25s ease;
}

.theme-sand .countdown-btn-secondary,
.theme-ivory .countdown-btn-secondary {
  border-color: #D6CFBF;
}

.countdown-btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.4);
}

.theme-sand .countdown-btn-secondary:hover,
.theme-ivory .countdown-btn-secondary:hover {
  background-color: rgba(0, 0, 0, 0.04);
  border-color: #1A1A1A;
}

/* 4. LAYOUT: SPLIT TWO-COLUMN */
.countdown-layout-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.countdown-layout-split .countdown-left-col {
  text-align: left;
}

.countdown-layout-split .countdown-right-col {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .countdown-layout-split {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 32px;
  }
  
  .countdown-layout-split .countdown-left-col {
    text-align: center;
  }
}

@media (max-width: 600px) {
  .oralyze-countdown-section {
    padding: 50px 16px;
  }

  .countdown-timer-grid {
    gap: 8px;
  }

  .countdown-unit-box {
    min-width: 68px;
    padding: 14px 8px;
  }

  .countdown-digit {
    font-size: 28px;
    margin-bottom: 4px;
  }

  .countdown-label {
    font-size: 9.5px;
  }

  .countdown-separator {
    font-size: 24px;
    margin-bottom: 16px;
  }

  .countdown-cta-row {
    flex-direction: column;
    width: 100%;
  }

  .countdown-btn-primary,
  .countdown-btn-secondary {
    width: 100%;
  }
}
