/* ==========================================================
   kitasocial - Christmas & New Year theme (regular theme)
   ปิดธีมได้ที่ themes/regular/views/index.php  ->  $xmas_theme = false;
   ========================================================== */

/* ---------- Header: white + Christmas lights + Santa hat ---------- */
.xmas-header {
  background: #fff !important;
  box-shadow: 0 3px 12px rgba(10, 20, 50, .08) !important;
}
.xmas-header .navbar-brand { position: relative; }
.xmas-hat {
  position: absolute;
  top: -6px;
  left: -12px;
  width: 32px;
  height: 34px;
  transform: rotate(-22deg);
  pointer-events: none;
  z-index: 2;
}
.xmas-lights {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 26px;
  overflow: hidden;
  pointer-events: none;
  display: flex;
  justify-content: space-around;
}
.xmas-lights::before {            /* the wire */
  content: "";
  position: absolute;
  left: 0; right: 0; top: -12px;
  height: 24px;
  border-bottom: 2px solid #2d3a4f;
  border-radius: 50%;
  opacity: .55;
}
.xmas-lights .bulb {
  position: relative;
  top: 6px;
  width: 9px;
  height: 14px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: 0 2px 12px 2px var(--c);
  animation: xmas-flash 1.6s ease-in-out infinite;
  animation-delay: var(--d);
}
.xmas-lights .bulb::before {      /* socket */
  content: "";
  position: absolute;
  top: -4px; left: 1px;
  width: 7px; height: 5px;
  border-radius: 2px;
  background: #2d3a4f;
}
@keyframes xmas-flash {
  0%, 100% { opacity: 1; box-shadow: 0 2px 14px 3px var(--c); }
  50%      { opacity: .35; box-shadow: 0 0 0 0 transparent; }
}

/* ---------- Hero ---------- */
.xmas-hero {
  position: relative;
  overflow: hidden;
  padding: 170px 0 150px;
  color: #fff;
  font-family: "Prompt", "Source Sans Pro", sans-serif;
  background:
    radial-gradient(ellipse at 85% 0%, rgba(84, 132, 255, .45) 0%, rgba(84, 132, 255, 0) 55%),
    radial-gradient(ellipse at 10% 90%, rgba(230, 57, 70, .25) 0%, rgba(230, 57, 70, 0) 50%),
    linear-gradient(180deg, #0a1330 0%, #12245a 55%, #1c3a7c 100%);
}
.xmas-hero::before {               /* stars */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 20px 30px, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 120px 80px, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 200px 150px, #cfe0ff 50%, transparent 51%),
    radial-gradient(1px 1px at 300px 40px, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 380px 120px, #fff7d1 50%, transparent 51%),
    radial-gradient(1px 1px at 60px 190px, #fff 50%, transparent 51%);
  background-size: 420px 220px;
  opacity: .7;
  animation: xmas-stars 4s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes xmas-stars { from { opacity: .45; } to { opacity: .9; } }

.xmas-hero .container { position: relative; z-index: 2; }

.xmas-badge {
  display: inline-block;
  padding: 6px 16px;
  margin-bottom: 18px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .5px;
  color: #ffe9a8;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 233, 168, .35);
}
.xmas-title {
  margin: 0 0 6px;
  font-family: "Mountains of Christmas", "Prompt", serif;
  font-size: 72px;
  font-weight: 700;
  line-height: 1.05;
  background: linear-gradient(90deg, #ffe27a 0%, #ffb347 50%, #ffe27a 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: xmas-shine 5s linear infinite;
  text-shadow: none;
}
@keyframes xmas-shine { to { background-position: 200% center; } }
.xmas-subtitle {
  margin: 0 0 20px;
  font-size: 36px;
  font-weight: 600;
  color: #fff;
}
.xmas-subtitle span { color: #ff6b78; }
.xmas-text {
  max-width: 520px;
  margin-bottom: 28px;
  font-size: 18px;
  line-height: 1.7;
  font-weight: 300;
  color: #d6e2ff;
}

/* countdown */
.xmas-countdown {
  display: flex;
  gap: 12px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}
.xmas-countdown .cd-box {
  min-width: 78px;
  padding: 10px 8px 8px;
  text-align: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .15);
  backdrop-filter: blur(4px);
}
.xmas-countdown .cd-num {
  display: block;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.1;
  color: #fff;
}
.xmas-countdown .cd-label {
  font-size: 13px;
  color: #aebfe8;
}
.xmas-countdown-title {
  margin-bottom: 10px;
  font-size: 15px;
  color: #ffe9a8;
}
.xmas-newyear {
  display: none;
  margin-bottom: 30px;
  font-size: 26px;
  font-weight: 600;
  color: #ffe27a;
}

/* buttons */
.xmas-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.xmas-btn {
  position: relative;
  display: inline-block;
  padding: 13px 32px;
  border-radius: 999px;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none !important;
  transition: transform .2s ease, box-shadow .2s ease;
}
.xmas-btn:hover { transform: translateY(-2px); }
.xmas-btn-primary {
  color: #fff !important;
  background: linear-gradient(90deg, #e63946, #ff6b5b);
  box-shadow: 0 8px 24px rgba(230, 57, 70, .45);
}
.xmas-btn-primary::before {        /* snow cap on button */
  content: "";
  position: absolute;
  top: -5px; left: 14px; right: 14px;
  height: 10px;
  border-radius: 10px 10px 6px 6px;
  background: #fff;
  opacity: .95;
}
.xmas-btn-outline {
  color: #fff !important;
  border: 2px solid rgba(255, 255, 255, .7);
}
.xmas-btn-outline:hover { background: rgba(255, 255, 255, .1); }

/* illustration */
.xmas-scene {
  display: block;
  width: 100%;
  max-width: 600px;
  margin-left: auto;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .35));
}

/* snow drift at the bottom of the hero */
.xmas-drift {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  width: 100%;
  height: 90px;
  z-index: 1;
  display: block;
}

/* ---------- Falling snow (canvas) ---------- */
#xmas-snow {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1040;
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  .xmas-hero { padding: 130px 0 120px; text-align: center; }
  .xmas-text { margin-left: auto; margin-right: auto; }
  .xmas-countdown, .xmas-actions { justify-content: center; }
  .xmas-title { font-size: 56px; }
  .xmas-subtitle { font-size: 28px; }
  .xmas-scene { margin: 40px auto 0; max-width: 440px; }
}
@media (max-width: 575px) {
  .xmas-title { font-size: 44px; }
  .xmas-subtitle { font-size: 22px; }
  .xmas-countdown .cd-box { min-width: 64px; }
  .xmas-countdown .cd-num { font-size: 24px; }
  .xmas-lights .bulb:nth-child(even) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .xmas-lights .bulb, .xmas-title, .xmas-hero::before { animation: none; }
}
