/**
 * PT. UNITEK MITRA SOLUSI — HOLIDAY BANNER & 10-SECOND CELEBRATION OVERLAY
 * Architecture: Technical Brand Alignment, Zero-CLS Sticky Header Integration,
 *               High-Performance Particle Canvas & Responsive Mobile Layout.
 */

/* Ensure .site-header expands to fit top bar note without any overflow */
.site-header {
  height: auto !important;
  min-height: var(--header-height) !important;
}

.site-header .header-inner {
  height: var(--header-height) !important;
}

@media (max-width: 991px) {
  .site-header .header-inner {
    height: var(--header-height-mobile, 68px) !important;
  }
}

/* ==========================================================================
   1. TOP HOLIDAY BAR NOTE (STICKY IN HEADER)
   ========================================================================== */
.top-holiday-bar {
  position: relative;
  width: 100%;
  min-height: 36px;
  background: #0D0D12;
  color: #FFFFFF;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  font-family: var(--font-sans, 'Inter', sans-serif);
  font-size: 11.5px;
  z-index: 1010;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.top-holiday-bar.is-hidden {
  display: none !important;
}

.top-holiday-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 5px 1.5rem;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

.holiday-left-cluster {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

/* Festive Status Badge & Pulsing Dot */
.holiday-pill-cluster {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.holiday-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--holiday-accent, #00A1E5);
  box-shadow: 0 0 0 0 rgba(0, 161, 229, 0.7);
  animation: holidayPulse 2s infinite cubic-bezier(0.66, 0, 0, 1);
}

@keyframes holidayPulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(240, 76, 36, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(240, 76, 36, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(240, 76, 36, 0);
  }
}

.holiday-badge {
  font-family: var(--font-mono, 'IBM Plex Mono', monospace);
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 7px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--holiday-accent, #00A1E5);
  border: 1px solid rgba(255, 255, 255, 0.16);
  white-space: nowrap;
}

/* Greeting Text Wrap */
.holiday-message-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.holiday-icon {
  font-size: 14px;
  line-height: 1;
  flex-shrink: 0;
}

.holiday-text {
  font-weight: 500;
  color: rgba(255, 255, 255, 0.94);
  letter-spacing: -0.01em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.holiday-text strong {
  font-weight: 700;
  color: #FFFFFF;
}

/* Actions: CTA Link & Close Button */
.holiday-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.holiday-cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono, 'IBM Plex Mono', monospace);
  font-size: 10.5px;
  font-weight: 700;
  color: #FFFFFF;
  background: var(--holiday-primary, #F04C24);
  padding: 3px 10px;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.holiday-cta:hover {
  filter: brightness(1.15);
  transform: translateY(-1px);
}

.holiday-close-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  padding: 4px;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.18s ease, background-color 0.18s ease;
}

.holiday-close-btn:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.15);
}

/* ==========================================================================
   2. THEME-SPECIFIC TOP BAR COLORWAYS
   ========================================================================== */
.top-holiday-bar.theme-hut-ri {
  background: linear-gradient(90deg, #1A0505 0%, #2D0808 50%, #1A0505 100%);
  border-bottom-color: rgba(220, 38, 38, 0.4);
  --holiday-primary: #DC2626;
  --holiday-accent: #FFFFFF;
}
.top-holiday-bar.theme-hut-ri .holiday-badge {
  background: rgba(220, 38, 38, 0.3);
  color: #FFFFFF;
  border-color: #EF4444;
}

.top-holiday-bar.theme-eid, .top-holiday-bar.theme-islamic, .top-holiday-bar.theme-adha, .top-holiday-bar.theme-maulid {
  background: linear-gradient(90deg, #041F16 0%, #073827 50%, #041F16 100%);
  border-bottom-color: rgba(14, 131, 69, 0.4);
  --holiday-primary: #0E8345;
  --holiday-accent: #FBBF24;
}
.top-holiday-bar.theme-eid .holiday-badge {
  background: rgba(14, 131, 69, 0.25);
  color: #FBBF24;
  border-color: rgba(251, 191, 36, 0.4);
}

.top-holiday-bar.theme-imlek {
  background: linear-gradient(90deg, #250606 0%, #3B0A0A 50%, #250606 100%);
  border-bottom-color: rgba(245, 158, 11, 0.35);
  --holiday-primary: #DC2626;
  --holiday-accent: #F59E0B;
}

.top-holiday-bar.theme-halloween {
  background: linear-gradient(90deg, #0F0818 0%, #1A0C2B 50%, #0F0818 100%);
  border-bottom-color: rgba(249, 115, 22, 0.4);
  --holiday-primary: #F97316;
  --holiday-accent: #C084FC;
}

.top-holiday-bar.theme-blackfriday {
  background: linear-gradient(90deg, #050508 0%, #0D0E18 50%, #050508 100%);
  border-bottom-color: rgba(0, 255, 157, 0.3);
  --holiday-primary: #10B981;
  --holiday-accent: #00FF9D;
}
.top-holiday-bar.theme-blackfriday .holiday-badge {
  background: rgba(0, 255, 157, 0.12);
  color: #00FF9D;
  border-color: #00FF9D;
}

.top-holiday-bar.theme-christmas {
  background: linear-gradient(90deg, #051A10 0%, #0C2E1D 50%, #051A10 100%);
  border-bottom-color: rgba(5, 150, 105, 0.4);
  --holiday-primary: #DC2626;
  --holiday-accent: #34D399;
}

.top-holiday-bar.theme-newyear {
  background: linear-gradient(90deg, #061224 0%, #0B2244 50%, #061224 100%);
  border-bottom-color: rgba(0, 161, 229, 0.4);
  --holiday-primary: #00A1E5;
  --holiday-accent: #F59E0B;
}

.top-holiday-bar.theme-corporate {
  background: #0D0D12;
  border-bottom-color: rgba(255, 255, 255, 0.1);
  --holiday-primary: #F04C24;
  --holiday-accent: #00A1E5;
}

/* ==========================================================================
   3. 10-SECOND CELEBRATION AMBIENT OVERLAY & FLOATING HERO CARD
   ========================================================================== */
.celebration-overlay {
  position: fixed;
  inset: 0;
  z-index: 99998;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.6s ease;
  overflow: hidden;
}

.celebration-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

/* Background Particle Canvas */
.celebration-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* Floating Celebration Welcome Card */
.celebration-hero-card {
  position: fixed;
  top: clamp(125px, 16vh, 150px);
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  z-index: 99999;
  width: min(620px, calc(100vw - 32px));
  background: rgba(13, 13, 18, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  box-shadow: 0 24px 60px -12px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.08);
  padding: 18px 22px;
  color: #FFFFFF;
  pointer-events: auto;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.celebration-hero-card.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.celebration-hero-inner {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.celebration-icon-bubble {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.celebration-card-body {
  flex: 1;
  min-width: 0;
}

.celebration-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 5px;
  gap: 8px;
}

.celebration-card-badge {
  font-family: var(--font-mono, 'IBM Plex Mono', monospace);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--holiday-accent, #00A1E5);
}

.celebration-card-title {
  font-family: var(--font-display, 'Inter', sans-serif);
  font-size: 16px;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.25;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.celebration-card-desc {
  font-size: 12.5px;
  color: #CBD5E1;
  line-height: 1.5;
  margin-bottom: 12px;
}

/* Card Footer with 10-Second Timer & Action Buttons */
.celebration-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 10px;
  margin-top: 4px;
}

.celebration-timer-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono, 'IBM Plex Mono', monospace);
  font-size: 11px;
  color: #94A3B8;
}

/* Circular Timer Progress */
.timer-svg {
  width: 18px;
  height: 18px;
  transform: rotate(-90deg);
}

.timer-circle-bg {
  stroke: rgba(255, 255, 255, 0.15);
  stroke-width: 2.5;
  fill: none;
}

.timer-circle-bar {
  stroke: var(--holiday-accent, #00A1E5);
  stroke-width: 2.5;
  stroke-linecap: round;
  fill: none;
  stroke-dasharray: 44;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.1s linear;
}

.celebration-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-card-cta {
  font-family: var(--font-mono, 'IBM Plex Mono', monospace);
  font-size: 11px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 6px;
  background: var(--holiday-primary, #F04C24);
  color: #FFFFFF;
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.btn-card-cta:hover {
  filter: brightness(1.15);
  transform: translateY(-1px);
}

.btn-card-dismiss {
  font-family: var(--font-sans, sans-serif);
  font-size: 11.5px;
  font-weight: 600;
  color: #94A3B8;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.btn-card-dismiss:hover {
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.08);
}

/* ==========================================================================
   4. RESPONSIVE BREAKPOINTS (MOBILE & TABLET)
   ========================================================================== */
@media (max-width: 900px) {
  .holiday-text {
    max-width: 380px;
  }
}

@media (max-width: 640px) {
  .top-holiday-inner {
    padding: 6px 12px;
    gap: 8px;
  }
  .holiday-badge {
    display: none;
  }
  .holiday-text {
    font-size: 11.5px;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.35;
  }
  .holiday-cta span {
    display: none;
  }
  .holiday-cta {
    padding: 4px 6px;
  }
  .celebration-hero-card {
    top: 60px;
    padding: 14px 16px;
  }
  .celebration-icon-bubble {
    width: 38px;
    height: 38px;
    font-size: 20px;
  }
  .celebration-card-title {
    font-size: 14.5px;
  }
  .celebration-card-desc {
    font-size: 11.5px;
  }
}

/* ==========================================================================
   5. ACCESSIBILITY: PREFERS-REDUCED-MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .holiday-pulse-dot {
    animation: none;
  }
  .celebration-canvas {
    display: none !important;
  }
  .celebration-hero-card, .celebration-overlay {
    transition: opacity 0.1s ease !important;
  }
}
