/* ===========================
   Christmas Countdown Plugin
   countdown.css - FIXED VERSION
   =========================== */

/* 1. Global & Body - FORCE Christmas red background */
body {
  background: linear-gradient(to bottom, #8B0000 0%, #3d0a0a 100%) !important;
  min-height: 100vh !important;
  font-family: 'Lato', 'Segoe UI', Arial, sans-serif;
  font-size: 18px;
  color: #F8F9FA;
  margin: 0;
  padding: 0;
}

html {
  background: linear-gradient(to bottom, #8B0000 0%, #3d0a0a 100%) !important;
  min-height: 100vh !important;
}

/* 2. Countdown Container */
.cc-countdown-container {
  max-width: 420px;
  width: 95vw;
  margin: 40px auto 24px auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  background: transparent;
}

.cc-countdown-title {
  font-family: 'Playfair Display', serif;
  letter-spacing: 1px;
  font-size: 2.2rem;
  color: #fffbe3;
  margin: 0 0 18px 0;
  text-shadow: 0 2px 12px rgba(0,0,0,0.28);
}

/* 3. Countdown Digits */
.cc-timer-row {
  display: flex;
  justify-content: center;
  gap: 1.1rem;
  margin: 0 0 10px 0;
  flex-wrap: wrap;
}

.cc-timer-block {
  background: rgba(255,255,255,0.09);
  border-radius: 12px;
  padding: 20px 12px 10px 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.13);
  min-width: 62px;
  transition: background .35s;
  flex: 0 0 auto;
}

.cc-digits {
  font-family: 'Rajdhani', monospace;
  font-size: 3.2rem;
  color: #fff;
  display: block;
  letter-spacing: 2px;
  transition: color .3s;
}

.cc-label {
  display: block;
  font-size: 1rem;
  color: #FFD699;
  letter-spacing: 1px;
  margin-top: -4px;
}

/* Number Animation (Fade In) */
.cc-digits.animated {
  animation: cc-fadein .5s;
}
@keyframes cc-fadein {
  from { opacity: 0; transform: translateY(12px);}
  to   { opacity: 1; transform: translateY(0);}
}

/* 4. Panels/Stats Row */
.cc-panel-row {
  display: flex;
  gap: 32px;
  justify-content: center;
  margin: 30px 0 0 0;
  flex-wrap: wrap;
}
.cc-parchment-panel, .cc-chalkboard-panel {
  flex: 1 1 0;
  min-width: 250px;
}

.cc-parchment-panel {
  background: linear-gradient(135deg,#f5ecd6 98%,#ceab7c 100%);
  border: 2px solid #e3c190;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(171, 139, 89, 0.16);
  padding: 16px 8px 16px 18px;
  color: #775032;
  font-family: 'Cormorant', serif;
  min-width: 0;
}
.cc-parchment-title {
  font-size: 1.05rem;
  font-weight: bold;
  color: #91461c;
}

.cc-chalkboard-panel {
  background: linear-gradient(135deg,#23332d 88%, #2c5f2d 100%);
  border: 2px solid #3e402c;
  border-radius: 10px;
  box-shadow: 0 2px 24px rgba(76, 85, 74, 0.18);
  padding: 16px 8px 16px 18px;
  color: #F8F9FA;
  font-family: 'Architects Daughter', cursive, sans-serif;
  min-width: 0;
}
.cc-chalkboard-title {
  font-size: 1.05rem;
  color: #fffbe3;
  font-weight: bold;
  text-shadow: 0 2px 10px #2c5f2dc0;
}

/* Stat Lists */
.cc-panel-list {
  margin: 12px 0 0 0;
  padding: 0;
  list-style-type: none;
}
.cc-panel-list li {
  padding: 3px 0;
  font-size: 1rem;
  border-bottom: 1px dashed rgba(120,82,42,0.08);
}
.cc-panel-list li:last-child {
  border-bottom: none;
}

/* 5. Daily Fact Section */
.cc-fact-card {
  margin: 32px auto 0 auto;
  max-width: 370px;
  background: rgba(255,255,255,0.10);
  border-radius: 10px;
  border: 1.5px solid #d4af37;
  padding: 18px 16px;
  color: #fffbe3;
  font-style: italic;
  box-shadow: 0 3px 14px rgba(252,217,149,0.08);
  animation: cc-panelin 1s;
}
@keyframes cc-panelin {
  from { opacity: 0; transform: translateY(32px);}
  to   { opacity: 1; transform: translateY(0);}
}

/* 6. Button Styles */
.cc-button {
  background: #d4af37;
  color: #8B0000;
  font-family: 'Rajdhani', monospace;
  padding: 12px 26px;
  border-radius: 7px;
  border: none;
  font-size: 1.12rem;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
  cursor: pointer;
  margin-top: 18px;
  transition: transform .16s, box-shadow .13s;
}
.cc-button:hover {
  background: #fffbe3;
  color: #8B0000;
  transform: scale(1.06);
  box-shadow: 0 6px 24px rgba(212, 175, 55, 0.18);
}

/* 7. Snowflake Animation */
.cc-snowflake {
  position: fixed;
  top: -20px;
  z-index: 9999;
  color: #fff;
  opacity: 0.6;
  font-size: 1.3em;
  pointer-events: none;
  user-select: none;
  animation: cc-snowfall linear infinite, cc-snowspin 6s linear infinite alternate;
}
@keyframes cc-snowfall {
  from { top: -20px;}
  to { top: 105vh;}
}
@keyframes cc-snowspin {
  from  { transform: rotate(0deg) scale(1);}
  to    { transform: rotate(360deg) scale(1.17);}
}

/* 8. Heading Shine Animation */
.cc-countdown-title {
  position: relative;
  overflow: hidden;
}
.cc-countdown-title::after {
  content: '';
  position: absolute;
  top: 0; left: -60%;
  width: 40%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.13), transparent);
  animation: cc-shimmer 2.2s infinite;
}
@keyframes cc-shimmer {
  to { left: 120%; }
}

/* 9. Accessibility: Reduce Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
}

/* 10. RESPONSIVE DESIGN - CRITICAL MOBILE FIXES */
@media (max-width: 1024px) {
  body {
    font-size: 16px;
    padding: 20px 0;
  }
  .cc-countdown-title { 
    font-size: 1.8rem; 
  }
  .cc-timer-block { 
    padding: 15px 7px 7px 7px; 
    min-width: 48px; 
  }
  .cc-digits { 
    font-size: 2.25rem; 
  }
  .cc-panel-row { 
    gap: 15px; 
  }
  .cc-parchment-panel, .cc-chalkboard-panel {
    min-width: 200px;
  }
}

@media (max-width: 767px) {
  body { 
    font-size: 14px; 
    padding: 8px 0; 
  }
  .cc-countdown-container { 
    margin: 10px auto 8px auto;
    width: 98vw;
    gap: 1rem;
  }
  .cc-countdown-title {
    font-size: 1.4rem;
    margin-bottom: 12px;
  }
  .cc-timer-row { 
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
  }
  .cc-digits { 
    font-size: 1.8rem;
  }
  .cc-timer-block { 
    padding: 10px 6px 6px 6px; 
    min-width: 70px;
    flex: 0 0 calc(25% - 8px);
  }
  .cc-label {
    font-size: 0.85rem;
  }
  .cc-panel-row { 
    flex-direction: column !important;
    gap: 12px;
  }
  .cc-fact-card, .cc-parchment-panel, .cc-chalkboard-panel {
    max-width: 96vw;
    padding: 12px 4vw;
    margin: 8px auto;
    min-width: auto;
  }
  .cc-parchment-title, .cc-chalkboard-title {
    font-size: 1rem;
  }
  .cc-panel-list li {
    font-size: 0.9rem;
    padding: 2px 0;
  }
}

@media (max-width: 480px) {
  .cc-countdown-container {
    width: 99vw;
    margin: 5px auto;
  }
  .cc-countdown-title {
    font-size: 1.2rem;
  }
  .cc-timer-block {
    padding: 8px 4px 4px 4px;
    min-width: 60px;
  }
  .cc-digits {
    font-size: 1.5rem;
  }
  .cc-timer-row {
    gap: 0.3rem;
  }
  .cc-fact-card, .cc-parchment-panel, .cc-chalkboard-panel {
    padding: 10px 3vw;
  }
}

/* ======================
   End of countdown.css
   ====================== */
