/* General layout & background */
body {
  min-height: 100vh;
  background:
    radial-gradient(circle at top, #fff7e6 0, #fce1e1 35%, #e3f3ff 75%, #0b1c2d 100%);
  background-attachment: fixed;
  color: #1f2933;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Gentle falling snow overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.8) 0, rgba(255, 255, 255, 0.8) 1px, transparent 1px),
    radial-gradient(circle, rgba(255, 255, 255, 0.7) 0, rgba(255, 255, 255, 0.7) 1px, transparent 1px);
  background-size: 200px 200px, 300px 300px;
  background-position: 0 0, 50px 50px;
  opacity: 0.5;
  z-index: -1;
  animation: snow-drift 30s linear infinite;
}

@keyframes snow-drift {
  0% {
    transform: translateY(-10px);
  }
  50% {
    transform: translateY(10px);
  }
  100% {
    transform: translateY(-10px);
  }
}

/* Main headings – festive style */
h1, h2 {
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  font-weight: 800;
  color: #b91c1c; /* deep red */
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

h1::before {
  content: "🎄 ";
}

h1::after {
  content: " 🎁";
}

/* Links */
a {
  text-decoration: none;
}

/* Card styling */
.card {
  border-radius: 1rem;
  border: 1px solid rgba(190, 24, 93, 0.15);
  box-shadow:
    0 8px 20px rgba(15, 23, 42, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.6);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.95),
    rgba(255, 250, 240, 0.98)
  );
}

/* Buttons – red & green theme overriding Bootstrap colors */
.btn-primary {
  background: linear-gradient(135deg, #b91c1c, #f97316);
  border-color: #b91c1c;
  font-weight: 600;
}

.btn-primary:hover,
.btn-primary:focus {
  background: linear-gradient(135deg, #991b1b, #ea580c);
  border-color: #991b1b;
}

.btn-outline-primary {
  color: #15803d;
  border-color: #16a34a;
  font-weight: 600;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background: #16a34a;
  color: #f9fafb;
}

.btn-danger {
  background: linear-gradient(135deg, #b91c1c, #dc2626);
  border-color: #b91c1c;
  font-weight: 600;
}

.btn-danger:hover,
.btn-danger:focus {
  background: linear-gradient(135deg, #991b1b, #b91c1c);
  border-color: #991b1b;
}

/* Alerts */
.alert-info {
  background-color: #e0f2fe;
  border-color: #7dd3fc;
  color: #0c4a6e;
}

.alert-success {
  background-color: #dcfce7;
  border-color: #4ade80;
  color: #166534;
}

.alert-warning {
  background-color: #fef3c7;
  border-color: #facc15;
  color: #92400e;
}

/* Page header "garland" */
.page-header {
  border-bottom: 3px dashed rgba(22, 163, 74, 0.4);
  padding-bottom: 0.75rem;
  margin-bottom: 1.5rem;
  position: relative;
}

.page-header::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -7px;
  width: 100%;
  height: 10px;
  background-image: repeating-linear-gradient(
    90deg,
    #16a34a 0,
    #16a34a 8px,
    transparent 8px,
    transparent 16px,
    #dc2626 16px,
    #dc2626 24px,
    transparent 24px,
    transparent 32px
  );
  opacity: 0.5;
}

/* Utility to center small pages */
.full-height-center {
  min-height: 80vh;
  display: flex;
  align-items: center;
}

/* Footer note */
.footer-note {
  font-size: 0.85rem;
  color: #6b7280;
}

/* Mobile-friendly tweaks */
@media (max-width: 576px) {
  h1 {
    font-size: 1.6rem;
    text-align: left;
  }

  body {
    padding-bottom: 2.5rem;
  }

  .page-header {
    padding-bottom: 0.5rem;
  }

  .btn,
  .btn-sm {
    width: 100%;
    justify-content: center;
  }

  .d-flex.flex-wrap.gap-2 > * {
    flex: 1 1 100%;
  }
}

/* Medium screens */
@media (min-width: 577px) and (max-width: 992px) {
  .btn-sm {
    padding-inline: 0.9rem;
  }
}
