/* christmas.css — scoped page styles for Christmas Countdown */

/* variables */
:root {
  --x-accent: #ffd166;
  --x-accent2: #ef476f;
  --x-muted: #9fb3c8;
}

/* Page root */
.xmas-page {
  background: #fff;
  color: #fff;
  overflow-x: hidden;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Snow layer */
#xmas-snow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  overflow: hidden;
}
.xmas-flake {
  position: absolute;
  background: white;
  border-radius: 50%;
  filter: blur(0.6px);
  opacity: 0.9;
  will-change: transform, opacity;
}

/* HERO section */
.xmas-hero {
  position: relative;
  min-height: 110vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-height, 56px) + 18px) 20px 140px; /* ensures hero starts below header */
  overflow: hidden;
  box-sizing: border-box;
}
.xmas-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  z-index: 0;
  transform: translateZ(0);
}
.xmas-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.12));
  z-index: 1;
  pointer-events: none;
}

.xmas-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 980px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 12px;
  box-sizing: border-box;
}

.xmas-title {
  font-size: 44px;
  line-height: 1.02;
  text-align: center;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
  text-shadow: 0 6px 22px rgba(0, 0, 0, 0.45);
}

.xmas-subtitle {
  color: var(--x-muted);
  font-weight: 600;
  margin-bottom: 18px;
  font-size: 18px;
}

/* Clock grid */
.xmas-clock {
  width: 100%;
  max-width: 720px;
  display: grid;
  grid-template-columns: repeat(4, minmax(84px, 1fr));
  gap: 12px;
  align-items: center;
  justify-items: center;
  margin-top: 8px;
  box-sizing: border-box;
}

.xmas-time-card {
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(6px);
  padding: 16px 14px;
  border-radius: 14px;
  min-width: 92px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.03);
  text-align: center;
}
.xmas-value {
  font-size: 44px;
  font-weight: 900;
  color: var(--x-accent);
  line-height: 1;
}
.x-label {
  font-size: 13px;
  color: var(--x-muted);
  margin-top: 8px;
}

/* celebrate button */
.xmas-controls {
  margin-top: 34px;
  display: flex;
  justify-content: center;
  width: 100%;
}
.xmas-btn {
  background: linear-gradient(90deg, var(--x-accent), var(--x-accent2));
  color: #071024;
  border: none;
  border-radius: 12px;
  padding: 13px 30px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
  font-size: 16px;
}

/* main content */
.xmas-main {
  background: #f5f5f5;
  padding: 40px 16px 140px;
  z-index: 5;
  position: relative;
  box-sizing: border-box;
}
.xmas-content-inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 18px;
  box-sizing: border-box;
}
.xmas-about {
  background: rgba(10, 12, 14, 0.86);
  color: #e6eef6;
  padding: 22px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.03);
  line-height: 1.7;
}

/* responsive */
@media (max-width: 920px) {
  .xmas-title { font-size: 40px; }
  .xmas-value { font-size: 40px; }
}
@media (max-width: 720px) {
  .xmas-hero { padding-top: calc(var(--nav-height, 56px) + 10px); padding-bottom: 20px; }
  .xmas-title { font-size: 30px; }
  .xmas-subtitle { font-size: 16px; }
  .xmas-clock {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 10px;
    row-gap: 22px;
    max-width: 520px;
  }
  .xmas-time-card { min-width: 78px; padding: 12px; border-radius: 12px; }
  .xmas-value { font-size: 34px; }
  .xmas-controls { margin-top: 22px; }
  .xmas-main { padding-top: 32px; }
}

/* accessibility: prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .xmas-flake { transition: none !important; animation: none !important; }
}
