/* Adventskalender op de homepage (index.php), alleen zolang hij in het panel aanstaat. */

/* Sneeuw in de hero: één laag die alleen verschuift (transform), zonder vervaging, zodat de
   grafische kaart het doet in plaats van de processor. Stopt als de hero uit beeld is. */
.nd .lk-hero-sneeuw { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; contain: strict; }
.nd .lk-hero-sneeuw::before {
    content: ""; position: absolute; left: 0; right: 0; top: -240px; height: calc(100% + 240px);
    background-image:
        radial-gradient(2px 2px at 30px 40px, rgba(255,255,255,.85), transparent),
        radial-gradient(1.5px 1.5px at 110px 130px, rgba(255,255,255,.6), transparent),
        radial-gradient(2.5px 2.5px at 190px 70px, rgba(255,255,255,.75), transparent),
        radial-gradient(1.5px 1.5px at 260px 200px, rgba(255,255,255,.5), transparent);
    background-size: 300px 240px;
    will-change: transform;
    animation: lk-home-sneeuw 18s linear infinite;
}
.nd .lk-hero-sneeuw.is-pauze::before { animation-play-state: paused; }
/* Het Kerst-thema heeft al eigen sneeuw: dan niet dubbel. */
.kerst-active .lk-hero-sneeuw,
.nd .hero:has(.kerst-sneeuw) .lk-hero-sneeuw { display: none; }

/* Verwijzing in de hero: een klein verlicht raampje met een rustige link, onder de kenmerken. */
.nd .lk-hero-raam {
    align-self: flex-start;
    display: inline-flex; align-items: center; gap: 10px;
    margin-top: 22px; min-height: 44px;
    font-size: .9rem; color: var(--muted-d);
    transition: color .2s;
}
.nd .lk-hero-raam b { color: #ffc76b; font-weight: 600; }
.nd .lk-hero-raam svg { width: 16px; height: 16px; transition: transform .2s; }
.nd .lk-hero-raam:hover { color: #fff; }
.nd .lk-hero-raam:hover svg { transform: translateX(3px); }
.nd .lk-hero-venster {
    position: relative; flex: none;
    width: 14px; height: 18px;
    border-radius: 40% 40% 2px 2px / 25% 25% 2px 2px;
    background: radial-gradient(circle at 50% 62%, #fff3cf 0%, #ffd27a 45%, #f0a33c 100%);
    box-shadow: 0 0 10px 2px rgba(255, 190, 90, .45);
}
.nd .lk-hero-venster::after {
    content: ""; position: absolute; inset: -7px; border-radius: 50%;
    background: radial-gradient(closest-side, rgba(255, 190, 90, .55), transparent);
    animation: lk-home-gloed 3.2s ease-in-out infinite;
}
/* Kozijn: een kruisje van spijlen */
.nd .lk-hero-venster::before {
    content: ""; position: absolute; inset: 0; border-radius: inherit;
    background:
        linear-gradient(to right, transparent calc(50% - .75px), rgba(90, 46, 8, .45) calc(50% - .75px) calc(50% + .75px), transparent calc(50% + .75px)),
        linear-gradient(to bottom, transparent 46%, rgba(90, 46, 8, .45) 46% calc(46% + 1.5px), transparent calc(46% + 1.5px));
}
@keyframes lk-home-gloed { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }

/* Blok onder de cijfers */
.nd .lk-home-kaart {
    display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center;
    padding: clamp(28px, 5vw, 56px);
    border-radius: var(--radius);
    background: linear-gradient(160deg, var(--dark) 0%, #0d1828 55%, #12243b 100%);
    color: #fff;
}
.nd .lk-home-kaart h2 { color: #fff; margin: 14px 0 16px; }
.nd .lk-home-kaart p { color: var(--muted-d); max-width: 46ch; margin-bottom: 26px; }
.nd .lk-home-ramen { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; max-width: 420px; justify-self: end; width: 100%; }
.nd .lk-home-ramen i {
    aspect-ratio: 3 / 4;
    display: flex; align-items: flex-start; justify-content: center; padding-top: 6px;
    border-radius: 40% 40% 3px 3px / 20% 20% 3px 3px;
    background: #121a26; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .08);
    font: 600 .75rem/1 var(--font-display); font-style: normal; color: rgba(255, 255, 255, .4);
}
.nd .lk-home-ramen i.is-aan {
    background: radial-gradient(circle at 50% 62%, #fff3cf 0%, #ffd27a 40%, #f0a33c 100%);
    box-shadow: 0 0 14px 2px rgba(255, 190, 90, .35); color: #4a2606;
}
.nd .lk-home-ramen i.is-vandaag { position: relative; box-shadow: inset 0 0 0 2px #ffc76b, 0 0 16px 3px rgba(255, 199, 107, .4); color: #ffc76b; }
.nd .lk-home-ramen i.is-vandaag::after {
    content: ""; position: absolute; inset: -8px; border-radius: 30%;
    background: radial-gradient(closest-side, rgba(255, 199, 107, .45), transparent);
    animation: lk-home-gloed 2.2s ease-in-out infinite; pointer-events: none;
}

@media (max-width: 820px) {
    .nd .lk-home-kaart { grid-template-columns: 1fr; }
    .nd .lk-home-ramen { justify-self: stretch; max-width: none; }
    .nd .lk-hero-raam { align-self: center; }
}

@keyframes lk-home-sneeuw { from { transform: translateY(0); } to { transform: translateY(240px); } }

@media (prefers-reduced-motion: reduce) {
    .nd .lk-hero-sneeuw::before, .nd .lk-home-ramen i::after, .nd .lk-hero-venster::after { animation: none; }
}
