/* Seasonal themes for the public catalogue. Activated by classes on <html>:
   .pc-themed + .pc-theme-{key}, and .pc-fx for the falling decorations. Colours come from --pc-* variables. */

:root { --pc-accent: var(--pc-primary); }

/* ---------- announcement banner (also without theme) ---------- */
.pc-banner {
    position: relative; z-index: 1; text-align: center; padding: 9px 16px; font-weight: 600;
    background: var(--pc-primary); color: #fff;
}

/* ---------- falling decorations: two tiled layers that slide down by exactly one tile ---------- */
.pc-fx-layer { display: none; }
.pc-fx .pc-fx-layer { display: block; position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; opacity: .7; }
.pc-fx .pc-root, .pc-fx .pc-banner { position: relative; z-index: 1; }
.pc-fx-layer::before, .pc-fx-layer::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; will-change: transform; }
.pc-fx-layer::before { top: -240px; background-image: var(--pc-fx1, none); animation: pc-fall-240 16s linear infinite; }
.pc-fx-layer::after { top: -360px; background-image: var(--pc-fx2, none); opacity: .7; animation: pc-fall-360 27s linear infinite; }
@keyframes pc-fall-240 { from { transform: translateY(0); } to { transform: translateY(240px); } }
@keyframes pc-fall-360 { from { transform: translate(0, 0); } 50% { transform: translate(12px, 180px); } to { transform: translate(0, 360px); } }
@media (prefers-reduced-motion: reduce) { .pc-fx-layer::before, .pc-fx-layer::after { animation: none; } }

/* ---------- shared themed elements ---------- */
.pc-themed .pc-header {
    position: relative; padding: 18px 22px; border-radius: var(--pc-radius); color: #fff;
    background: var(--pc-header-bg, var(--pc-primary)); box-shadow: 0 6px 20px rgba(0, 0, 0, .12);
}
.pc-themed .pc-title::before {
    content: ""; display: inline-block; width: 1.15em; height: 1.15em; margin-right: .45em; vertical-align: -.18em;
    background: var(--pc-icon, none) center / contain no-repeat;
}
.pc-themed .pc-card { border-top: 3px solid var(--pc-accent); }
.pc-themed .pc-card:hover { box-shadow: 0 8px 22px color-mix(in srgb, var(--pc-primary) 28%, transparent); }
.pc-themed .pc-add { box-shadow: 0 4px 14px color-mix(in srgb, var(--pc-primary) 35%, transparent); }

/* ---------- Christmas ---------- */
.pc-theme-christmas {
    --pc-header-bg: linear-gradient(135deg, var(--pc-primary), #7a1118);
    --pc-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23ffd34d' d='M12 2l2.9 6.6 7.1.6-5.4 4.7 1.6 7-6.2-3.7-6.2 3.7 1.6-7L2 9.2l7.1-.6z'/%3E%3C/svg%3E");
    --pc-fx1: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cg fill='%23bfd0e4'%3E%3Ccircle cx='20' cy='30' r='2.6'/%3E%3Ccircle cx='92' cy='12' r='1.7'/%3E%3Ccircle cx='150' cy='62' r='3'/%3E%3Ccircle cx='212' cy='26' r='2'/%3E%3Ccircle cx='60' cy='112' r='1.8'/%3E%3Ccircle cx='132' cy='142' r='2.6'/%3E%3Ccircle cx='202' cy='122' r='1.5'/%3E%3Ccircle cx='30' cy='192' r='2.2'/%3E%3Ccircle cx='102' cy='212' r='1.6'/%3E%3Ccircle cx='182' cy='202' r='2.8'/%3E%3C/g%3E%3C/svg%3E");
    --pc-fx2: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='360' height='360'%3E%3Cg fill='%23d5e1ee'%3E%3Ccircle cx='50' cy='60' r='4'/%3E%3Ccircle cx='200' cy='30' r='3.4'/%3E%3Ccircle cx='310' cy='150' r='4.4'/%3E%3Ccircle cx='120' cy='230' r='3.6'/%3E%3Ccircle cx='260' cy='300' r='4'/%3E%3Ccircle cx='20' cy='330' r='3'/%3E%3C/g%3E%3C/svg%3E");
}
.pc-theme-christmas .pc-header { margin-bottom: 34px; }
/* A string of lights hanging under the header. */
.pc-theme-christmas .pc-header::after {
    content: ""; position: absolute; left: 8px; right: 8px; bottom: -20px; height: 22px; pointer-events: none;
    background:
        radial-gradient(ellipse 5px 7px at 10px 14px, #ffd34d 98%, transparent) 0 0 / 60px 22px repeat-x,
        radial-gradient(ellipse 5px 7px at 30px 14px, #ff4d5e 98%, transparent) 0 0 / 60px 22px repeat-x,
        radial-gradient(ellipse 5px 7px at 50px 14px, #3ccf74 98%, transparent) 0 0 / 60px 22px repeat-x,
        radial-gradient(ellipse 12px 9px at 50% 0, transparent 85%, #3a2a20 88% 100%, transparent) 0 -3px / 20px 14px repeat-x;
    animation: pc-twinkle 1.4s ease-in-out infinite alternate;
}
@keyframes pc-twinkle { from { filter: brightness(.85); } to { filter: brightness(1.3) drop-shadow(0 0 4px rgba(255, 220, 120, .9)); } }
.pc-theme-christmas .pc-banner { background: var(--pc-accent); }

/* ---------- Winter ---------- */
.pc-theme-winter {
    --pc-header-bg: linear-gradient(135deg, var(--pc-primary), #5aaad8);
    --pc-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg stroke='white' stroke-width='2' stroke-linecap='round' fill='none'%3E%3Cpath d='M12 2v20M3.3 7l17.4 10M3.3 17L20.7 7M9 3.5l3 3 3-3M9 20.5l3-3 3 3'/%3E%3C/g%3E%3C/svg%3E");
    --pc-fx1: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cg fill='%23a9cbe6'%3E%3Ccircle cx='20' cy='30' r='2.4'/%3E%3Ccircle cx='92' cy='12' r='1.6'/%3E%3Ccircle cx='150' cy='62' r='2.8'/%3E%3Ccircle cx='212' cy='26' r='1.8'/%3E%3Ccircle cx='60' cy='112' r='2'/%3E%3Ccircle cx='132' cy='142' r='2.6'/%3E%3Ccircle cx='202' cy='122' r='1.5'/%3E%3Ccircle cx='30' cy='192' r='2.2'/%3E%3Ccircle cx='102' cy='212' r='1.6'/%3E%3Ccircle cx='182' cy='202' r='2.6'/%3E%3C/g%3E%3C/svg%3E");
    --pc-fx2: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='360' height='360'%3E%3Cg stroke='%23b8d6ec' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M60 50v20M51 55l18 10M51 65l18-10'/%3E%3Cpath d='M260 140v24M249.6 146l20.8 12M249.6 158l20.8-12'/%3E%3Cpath d='M140 280v16M133 284l14 8M133 292l14-8'/%3E%3C/g%3E%3C/svg%3E");
}

/* ---------- Sinterklaas ---------- */
.pc-theme-sinterklaas {
    --pc-header-bg: linear-gradient(135deg, var(--pc-primary), #850a1e);
    --pc-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='3' y='10' width='18' height='11' rx='1' fill='%23ffd34d'/%3E%3Crect x='2' y='7' width='20' height='4' rx='1' fill='%23ffe58a'/%3E%3Crect x='11' y='7' width='2' height='14' fill='%23850a1e'/%3E%3Cpath d='M12 7C10 2.5 5.5 3.5 8 7M12 7c2-4.5 6.5-3.5 4 0' stroke='%23ffe58a' stroke-width='1.6' fill='none'/%3E%3C/svg%3E");
    --pc-fx1: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cg fill='%23a0662f'%3E%3Ccircle cx='24' cy='34' r='4'/%3E%3Ccircle cx='150' cy='66' r='4.6'/%3E%3Ccircle cx='70' cy='130' r='3.8'/%3E%3Ccircle cx='200' cy='150' r='4.2'/%3E%3Ccircle cx='110' cy='214' r='4'/%3E%3C/g%3E%3Cg fill='%23c48a4f'%3E%3Ccircle cx='23' cy='32' r='1.4'/%3E%3Ccircle cx='148' cy='64' r='1.6'/%3E%3Ccircle cx='69' cy='128' r='1.3'/%3E%3Ccircle cx='198' cy='148' r='1.5'/%3E%3Ccircle cx='109' cy='212' r='1.4'/%3E%3C/g%3E%3C/svg%3E");
    --pc-fx2: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='360' height='360'%3E%3Cg fill='%23d4a017'%3E%3Ccircle cx='80' cy='70' r='2'/%3E%3Ccircle cx='290' cy='190' r='2.4'/%3E%3Ccircle cx='170' cy='300' r='2'/%3E%3C/g%3E%3C/svg%3E");
}
.pc-theme-sinterklaas .pc-header { padding-bottom: 26px; overflow: hidden; }
.pc-theme-sinterklaas .pc-header::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 8px;
    background: repeating-linear-gradient(45deg, var(--pc-accent) 0 9px, #fff1c1 9px 18px);
}
.pc-theme-sinterklaas .pc-banner { background: var(--pc-accent); color: #3a1f0f; }

/* ---------- New Year (dark) ---------- */
.pc-theme-newyear {
    --pc-header-bg: linear-gradient(135deg, #22243a, #3d3156);
    --pc-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg stroke='%23e8c766' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M12 2v5M12 17v5M2 12h5M17 12h5M4.9 4.9l3.5 3.5M15.6 15.6l3.5 3.5M4.9 19.1l3.5-3.5M15.6 8.4l3.5-3.5'/%3E%3C/g%3E%3Ccircle cx='12' cy='12' r='2' fill='%23fff'/%3E%3C/svg%3E");
    --pc-fx1: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Crect x='20' y='30' width='8' height='4' fill='%23e8c766' transform='rotate(25 24 32)'/%3E%3Crect x='120' y='20' width='7' height='3' fill='%23ff6fa8' transform='rotate(-30 123 21)'/%3E%3Crect x='190' y='80' width='8' height='4' fill='%2368d8d6' transform='rotate(60 194 82)'/%3E%3Crect x='60' y='120' width='7' height='3' fill='%23ffffff' transform='rotate(-15 63 121)'/%3E%3Crect x='150' y='170' width='8' height='4' fill='%23e8c766' transform='rotate(40 154 172)'/%3E%3Crect x='30' y='210' width='7' height='3' fill='%23ff6fa8' transform='rotate(70 33 211)'/%3E%3C/svg%3E");
    --pc-fx2: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='360' height='360'%3E%3Cg fill='%23e8c766'%3E%3Ccircle cx='70' cy='90' r='2'/%3E%3Ccircle cx='250' cy='40' r='1.6'/%3E%3Ccircle cx='310' cy='230' r='2.2'/%3E%3Ccircle cx='150' cy='320' r='1.8'/%3E%3C/g%3E%3C/svg%3E");
}
.pc-theme-newyear .pc-title { color: var(--pc-accent); }
.pc-theme-newyear .pc-btn:not(.pc-btn-ghost), .pc-theme-newyear .pc-cat-list a.active, .pc-theme-newyear .pc-banner { color: #15161f; }

/* ---------- Valentine ---------- */
.pc-theme-valentine {
    --pc-header-bg: linear-gradient(135deg, var(--pc-primary), #ff8fab);
    --pc-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M12 21s-8-5.3-8-11a4.5 4.5 0 0 1 8-2.8A4.5 4.5 0 0 1 20 10c0 5.7-8 11-8 11z'/%3E%3C/svg%3E");
    --pc-fx1: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cg fill='%23ffb3c6'%3E%3Cpath transform='translate(20 20) scale(.6)' d='M12 21s-8-5.3-8-11a4.5 4.5 0 0 1 8-2.8A4.5 4.5 0 0 1 20 10c0 5.7-8 11-8 11z'/%3E%3Cpath transform='translate(150 80) scale(.8)' d='M12 21s-8-5.3-8-11a4.5 4.5 0 0 1 8-2.8A4.5 4.5 0 0 1 20 10c0 5.7-8 11-8 11z'/%3E%3Cpath transform='translate(70 170) scale(.5)' d='M12 21s-8-5.3-8-11a4.5 4.5 0 0 1 8-2.8A4.5 4.5 0 0 1 20 10c0 5.7-8 11-8 11z'/%3E%3C/g%3E%3C/svg%3E");
    --pc-fx2: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='360' height='360'%3E%3Cg fill='%23ffd1dc'%3E%3Cpath transform='translate(260 40) scale(1)' d='M12 21s-8-5.3-8-11a4.5 4.5 0 0 1 8-2.8A4.5 4.5 0 0 1 20 10c0 5.7-8 11-8 11z'/%3E%3Cpath transform='translate(60 250) scale(.9)' d='M12 21s-8-5.3-8-11a4.5 4.5 0 0 1 8-2.8A4.5 4.5 0 0 1 20 10c0 5.7-8 11-8 11z'/%3E%3C/g%3E%3C/svg%3E");
}

/* ---------- Easter ---------- */
.pc-theme-easter {
    --pc-header-bg: linear-gradient(135deg, var(--pc-primary), #9cc85c);
    --pc-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cellipse cx='12' cy='13' rx='7' ry='9' fill='%23fff4c2'/%3E%3Cpath d='M5.3 11c2.2 1.4 4.5-1 6.7 0s4.5-1.4 6.7 0' stroke='%23f4a6bd' stroke-width='1.8' fill='none'/%3E%3Cpath d='M5.6 16c2.1 1.2 4.3-1 6.4 0s4.3-1.2 6.4 0' stroke='%2393c5f0' stroke-width='1.8' fill='none'/%3E%3C/svg%3E");
    --pc-fx1: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cg fill='%23f6c1d1'%3E%3Cellipse cx='30' cy='40' rx='4' ry='2.4' transform='rotate(30 30 40)'/%3E%3Cellipse cx='160' cy='70' rx='4.5' ry='2.6' transform='rotate(-40 160 70)'/%3E%3Cellipse cx='90' cy='150' rx='4' ry='2.4' transform='rotate(70 90 150)'/%3E%3Cellipse cx='210' cy='200' rx='4.2' ry='2.5' transform='rotate(10 210 200)'/%3E%3C/g%3E%3C/svg%3E");
    --pc-fx2: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='360' height='360'%3E%3Cg fill='%23ffe58a'%3E%3Ccircle cx='80' cy='60' r='2.4'/%3E%3Ccircle cx='280' cy='210' r='2.6'/%3E%3Ccircle cx='170' cy='320' r='2.2'/%3E%3C/g%3E%3C/svg%3E");
}

/* ---------- Summer (no falling decorations, a sun in the header instead) ---------- */
.pc-theme-summer {
    --pc-header-bg: radial-gradient(circle at calc(100% - 46px) 34px, #ffd75e 0 22px, rgba(255, 201, 60, .35) 23px 44px, transparent 45px),
        linear-gradient(135deg, var(--pc-primary), #3cc7d6);
    --pc-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='5' fill='%23ffc93c'/%3E%3Cg stroke='%23ffc93c' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 1.5v3M12 19.5v3M1.5 12h3M19.5 12h3M4.6 4.6l2.1 2.1M17.3 17.3l2.1 2.1M4.6 19.4l2.1-2.1M17.3 6.7l2.1-2.1'/%3E%3C/g%3E%3C/svg%3E");
}
.pc-theme-summer .pc-banner { background: var(--pc-accent); color: #1d3a3f; }

/* ---------- Halloween (dark) ---------- */
.pc-theme-halloween {
    --pc-header-bg: radial-gradient(circle at calc(100% - 48px) 34px, #fff3c4 0 18px, rgba(255, 243, 196, .2) 19px 34px, transparent 35px),
        linear-gradient(135deg, #2a2038, #4b2a60);
    --pc-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 6c0-2 1-3 2.5-3.5' stroke='%234caf50' stroke-width='2' fill='none'/%3E%3Cellipse cx='8' cy='14' rx='5' ry='7' fill='%23e8711a'/%3E%3Cellipse cx='16' cy='14' rx='5' ry='7' fill='%23e8711a'/%3E%3Cellipse cx='12' cy='14' rx='4.5' ry='7.5' fill='%23f59a3b'/%3E%3C/svg%3E");
    --pc-fx1: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cg fill='%239b5de5'%3E%3Cpath transform='translate(30 30)' d='M5 0l1.5 3.5L10 5 6.5 6.5 5 10 3.5 6.5 0 5l3.5-1.5z'/%3E%3Cpath transform='translate(170 120)' d='M5 0l1.5 3.5L10 5 6.5 6.5 5 10 3.5 6.5 0 5l3.5-1.5z'/%3E%3C/g%3E%3Cg fill='%23f07c19'%3E%3Cellipse cx='110' cy='60' rx='4.5' ry='2.6' transform='rotate(35 110 60)'/%3E%3Cellipse cx='60' cy='190' rx='4.5' ry='2.6' transform='rotate(-50 60 190)'/%3E%3Cellipse cx='210' cy='220' rx='4' ry='2.4' transform='rotate(15 210 220)'/%3E%3C/g%3E%3C/svg%3E");
}
.pc-theme-halloween .pc-title { color: var(--pc-primary); }
.pc-theme-halloween .pc-btn:not(.pc-btn-ghost), .pc-theme-halloween .pc-cat-list a.active, .pc-theme-halloween .pc-banner { color: #1b1426; }
