/*
Theme Name: Jul 2026
Theme URI: http://jul2026.bn-design.dk/
Description: Et festligt julethema med snefald, lyskæde og rød/grøn/guld-farver. Child theme til GeneratePress.
Author: BN Design
Template: generatepress
Version: 1.0.0
License: GPLv2 or later
Text Domain: jul2026
*/



:root {
  --jul-roed: #b3202a;
  --jul-roed-moerk: #8a141c;
  --jul-groen: #165b33;
  --jul-groen-moerk: #0f3d24;
  --jul-guld: #e8b94a;
  --jul-creme: #fdf8ee;
  --jul-tekst: #2b2b2b;
}

/* ---------- Grundlag ---------- */
body {
  background-color: var(--jul-creme);
  background-image:
    radial-gradient(circle at 20% 10%, rgba(232,185,74,.10) 0, transparent 40%),
    radial-gradient(circle at 80% 90%, rgba(179,32,42,.06) 0, transparent 40%);
  color: var(--jul-tekst);
  font-family: 'Lato', Georgia, sans-serif;
}

h1, h2, h3, h4,
.main-title,
.entry-title {
  font-family: 'Mountains of Christmas', Georgia, serif;
  font-weight: 700;
}

a { color: var(--jul-roed); transition: color .2s; }
a:hover, a:focus { color: var(--jul-groen); }

/* ---------- Snefald (ren CSS) ---------- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  background-image:
    radial-gradient(3px 3px at 10% 10%, #fff 50%, transparent 52%),
    radial-gradient(2px 2px at 25% 40%, #fff 50%, transparent 52%),
    radial-gradient(4px 4px at 40% 20%, #fff 50%, transparent 52%),
    radial-gradient(2px 2px at 55% 70%, #fff 50%, transparent 52%),
    radial-gradient(3px 3px at 70% 30%, #fff 50%, transparent 52%),
    radial-gradient(2px 2px at 85% 60%, #fff 50%, transparent 52%),
    radial-gradient(4px 4px at 95% 15%, #fff 50%, transparent 52%),
    radial-gradient(3px 3px at 15% 80%, #fff 50%, transparent 52%);
  background-size: 400px 400px;
  filter: drop-shadow(0 0 2px rgba(120,150,180,.6));
  animation: sne 14s linear infinite;
}
@keyframes sne {
  from { background-position: 0 0; }
  to   { background-position: 60px 400px; }
}
@media (prefers-reduced-motion: reduce) {
  body::before { animation: none; }
}

/* ---------- Header ---------- */
.site-header {
  background: linear-gradient(135deg, var(--jul-roed) 0%, var(--jul-roed-moerk) 100%);
  border-bottom: 6px solid var(--jul-guld);
  position: relative;
}
.main-title a,
.main-title a:hover,
.site-description {
  color: #fff;
  text-shadow: 0 2px 4px rgba(0,0,0,.3);
}
.main-title { font-size: 2.6rem; }
.main-title a::before { content: "🎄 "; }
.main-title a::after  { content: " 🎅"; }

/* Lyskæde under headeren */
.site-header::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -22px;
  height: 14px;
  z-index: 5;
  background:
    radial-gradient(circle at 10px 7px, #ffd54a 0 5px, transparent 6px) 0 0 / 60px 14px repeat-x,
    radial-gradient(circle at 25px 7px, #ff4d4d 0 5px, transparent 6px) 0 0 / 60px 14px repeat-x,
    radial-gradient(circle at 40px 7px, #4dd37a 0 5px, transparent 6px) 0 0 / 60px 14px repeat-x,
    radial-gradient(circle at 55px 7px, #4da6ff 0 5px, transparent 6px) 0 0 / 60px 14px repeat-x;
  animation: blink 1.6s ease-in-out infinite alternate;
}
@keyframes blink {
  from { opacity: 1;  filter: brightness(1.2); }
  to   { opacity: .55; filter: brightness(.8); }
}

/* ---------- Menu ---------- */
.main-navigation,
.main-navigation ul ul {
  background-color: var(--jul-groen);
}
.main-navigation .main-nav ul li a {
  color: #fff;
  font-weight: 700;
  letter-spacing: .03em;
}
.main-navigation .main-nav ul li:hover > a,
.main-navigation .main-nav ul li.current-menu-item > a {
  background-color: var(--jul-groen-moerk);
  color: var(--jul-guld);
}

/* ---------- Indlæg og sider ---------- */
.separate-containers .inside-article,
.separate-containers .comments-area,
.separate-containers .page-header,
.one-container .container {
  background: #fff;
  border-radius: 14px;
  border-top: 5px solid var(--jul-roed);
  box-shadow: 0 6px 18px rgba(0,0,0,.08);
  position: relative;
}
.entry-title a { color: var(--jul-groen); }
.entry-title a:hover { color: var(--jul-roed); }
.entry-meta, .entry-meta a { color: #6b6b6b; }

/* Lille nissehue-agtig pynt på indlæg */
.inside-article::before {
  content: "❄";
  position: absolute;
  top: 8px; right: 14px;
  font-size: 1.4rem;
  color: #9ec9e8;
  opacity: .8;
}

/* ---------- Sidebar / widgets ---------- */
.widget {
  background: #fff;
  border-radius: 14px;
  border-top: 5px solid var(--jul-groen);
  box-shadow: 0 6px 18px rgba(0,0,0,.08);
}
.widget-title {
  color: var(--jul-roed);
  font-family: 'Mountains of Christmas', Georgia, serif;
  font-size: 1.5rem;
}
.widget-title::before { content: "🎁 "; }

/* ---------- Knapper og formularer ---------- */
button, html input[type="button"], input[type="reset"],
input[type="submit"], a.button, a.wp-block-button__link:not(.has-background) {
  background: var(--jul-roed);
  color: #fff;
  border-radius: 30px;
  padding: 10px 24px;
  font-weight: 700;
  border: 2px solid var(--jul-guld);
  transition: all .2s;
}
button:hover, input[type="submit"]:hover, a.button:hover,
a.wp-block-button__link:not(.has-background):hover {
  background: var(--jul-groen);
  color: #fff;
  transform: translateY(-2px);
}

input[type="text"], input[type="email"], input[type="url"],
input[type="search"], textarea {
  border: 2px solid #e5d9c0;
  border-radius: 8px;
  background: #fffdf7;
}
input:focus, textarea:focus {
  border-color: var(--jul-groen);
  outline: none;
  box-shadow: 0 0 0 3px rgba(22,91,51,.15);
}

/* ---------- Citater ---------- */
blockquote {
  border-left: 5px solid var(--jul-roed);
  background: #fbefe6;
  border-radius: 0 10px 10px 0;
  font-style: italic;
}

/* ---------- Footer ---------- */
.site-footer, .site-info {
  background: linear-gradient(180deg, var(--jul-groen) 0%, var(--jul-groen-moerk) 100%);
  color: #fff;
}
.site-info a { color: var(--jul-guld); }
.site-footer {
  border-top: 6px solid var(--jul-guld);
}
.site-info::before { content: "🎄 Glædelig jul 🎄"; display: block; font-family: 'Mountains of Christmas', serif; font-size: 1.4rem; margin-bottom: 6px; }

/* ---------- Mobil ---------- */
@media (max-width: 768px) {
  .main-title { font-size: 2rem; }
}
