/* ==========================================================================
   Sezónní motivy Pohlednictví.cz (decentní varianta – zachovává základní
   barvy e-shopu, přidává pouze sváteční/sezónní dekorace a efekty).
   Načítá se pouze tehdy, když je v administraci aktivní některý sezónní motiv.
   ========================================================================== */

/* ==========================================================================
   1. VÁNOČNÍ MOTIV (body.site-theme-christmas)
   - Zachovává původní barvy webu (modrá hlavička, oranžové menu a tlačítka)
   - Přidává:
     1) jemný zimní vzor vloček a řetěz světýlek v hlavičce
     2) decentní sněhovou vločku + ledový akcent v kartě produktu (.product-col)
     3) zasněžený zimní horizont se stromečky nad patičkou + hvězdičky v copyrightu
   ========================================================================== */

body.site-theme-christmas #header-area {
    position: relative;
}

/* Velmi jemný bílý zimní odlesk / vločky na pozadí původní modré hlavičky */
body.site-theme-christmas #header-area::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='100' viewBox='0 0 180 100'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.14' stroke-width='1'%3E%3Cpath d='M28 18v12M22 24h12M24 20l8 8M32 20l-8 8'/%3E%3Cpath d='M138 56v10M133 61h10M135 58l6 6M141 58l-6 6'/%3E%3Ccircle cx='88' cy='22' r='1.5' fill='%23ffffff' fill-opacity='0.18' stroke='none'/%3E%3Ccircle cx='160' cy='24' r='1.2' fill='%23ffffff' fill-opacity='0.16' stroke='none'/%3E%3Ccircle cx='56' cy='76' r='1.4' fill='%23ffffff' fill-opacity='0.15' stroke='none'/%3E%3C/g%3E%3C/svg%3E");
}

body.site-theme-christmas .header-top {
    position: relative;
    z-index: 2;
}

/* Vánoční řetěz světýlek pod horní lištou */
.seasonal-christmas-lights {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    height: 18px;
    overflow: hidden;
    pointer-events: none;
    padding: 0 8px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='10' viewBox='0 0 90 10'%3E%3Cpath d='M0 2 Q45 9 90 2' fill='none' stroke='%231e293b' stroke-opacity='0.55' stroke-width='1.3'/%3E%3C/svg%3E");
    background-repeat: repeat-x;
    background-position: top left;
}

.seasonal-christmas-lights span {
    position: relative;
    display: inline-block;
    width: 7px;
    height: 11px;
    margin-top: 4px;
    border-radius: 50% 50% 50% 50% / 38% 38% 62% 62%;
    background: #fde047;
    box-shadow: 0 2px 9px rgba(253, 224, 71, 0.9);
}

.seasonal-christmas-lights span::before {
    content: "";
    position: absolute;
    top: -3px;
    left: 1px;
    width: 5px;
    height: 3px;
    border-radius: 2px 2px 0 0;
    background: #1e293b;
}

.seasonal-christmas-lights span:nth-child(4n+1) {
    background: #fde047;
    box-shadow: 0 2px 9px rgba(253, 224, 71, 0.9);
}
.seasonal-christmas-lights span:nth-child(4n+2) {
    background: #f87171;
    box-shadow: 0 2px 9px rgba(248, 113, 113, 0.85);
}
.seasonal-christmas-lights span:nth-child(4n+3) {
    background: #fffbeb;
    box-shadow: 0 2px 9px rgba(255, 251, 235, 0.95);
}
.seasonal-christmas-lights span:nth-child(4n) {
    background: #4ade80;
    box-shadow: 0 2px 9px rgba(74, 222, 128, 0.85);
}

@keyframes christmasTwinkle {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.45; transform: scale(0.92); }
}

body.site-theme-christmas.site-theme-effects .seasonal-christmas-lights span {
    animation: christmasTwinkle 2.8s ease-in-out infinite;
}
body.site-theme-christmas.site-theme-effects .seasonal-christmas-lights span:nth-child(odd) {
    animation-delay: 0.7s;
}
body.site-theme-christmas.site-theme-effects .seasonal-christmas-lights span:nth-child(3n) {
    animation-delay: 1.4s;
}

@media (prefers-reduced-motion: reduce) {
    body.site-theme-christmas.site-theme-effects .seasonal-christmas-lights span {
        animation: none !important;
    }
}

/* Decentní vánoční detail v položce produktu v kategorii (.product-col) */
body.site-theme-christmas .product-col {
    position: relative;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

body.site-theme-christmas .product-col > div.discount {
    z-index: 3;
}

/* Tenká zimní jinovatková linka nahoře na kartě */
body.site-theme-christmas .product-col::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, rgba(147, 197, 253, 0.45) 35%, rgba(191, 219, 254, 0.7) 75%, rgba(147, 197, 253, 0.5) 100%);
    pointer-events: none;
    z-index: 1;
}

/* Jemná sněhová vločka v pravém horním rohu karty */
body.site-theme-christmas .product-col::after {
    content: "";
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    pointer-events: none;
    z-index: 1;
    opacity: 0.42;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2360a5fa' stroke-width='1.5' stroke-linecap='round'%3E%3Cpath d='M12 2v20M2 12h20M4.93 4.93l14.14 14.14M19.07 4.93L4.93 19.07'/%3E%3Cpath d='M12 5l2-2M12 5l-2-2M12 19l2 2M12 19l-2 2M5 12l-2-2M5 12l-2 2M19 12l2-2M19 12l2 2'/%3E%3C/svg%3E");
    transition: opacity 0.25s ease, transform 0.35s ease;
}

body.site-theme-christmas .product-col:hover::after {
    opacity: 0.78;
    transform: rotate(22deg) scale(1.06);
}

/* Zimní dekorace patičky: jemný zasněžený horizont se stromečky nad .footer-links */
body.site-theme-christmas #footer-area {
    position: relative;
}

body.site-theme-christmas #footer-area::before {
    content: "";
    display: block;
    width: 100%;
    height: 36px;
    pointer-events: none;
    background-repeat: repeat-x;
    background-position: bottom center;
    background-size: 320px 36px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='36' viewBox='0 0 320 36'%3E%3Cg fill='none'%3E%3Ccircle cx='28' cy='9' r='1.3' fill='%2394a3b8' fill-opacity='0.45'/%3E%3Ccircle cx='126' cy='7' r='1.1' fill='%2394a3b8' fill-opacity='0.4'/%3E%3Ccircle cx='214' cy='10' r='1.4' fill='%2394a3b8' fill-opacity='0.45'/%3E%3Ccircle cx='292' cy='8' r='1.1' fill='%2394a3b8' fill-opacity='0.4'/%3E%3Cpath d='M56 32l8-15 8 15zM60 22l4-8 4 8z' fill='%234b6b5c' fill-opacity='0.55'/%3E%3Cpath d='M74 33l6-11 6 11z' fill='%23648575' fill-opacity='0.48'/%3E%3Cpath d='M172 32l9-18 9 18zM176 21l5-10 5 10z' fill='%234b6b5c' fill-opacity='0.52'/%3E%3Cpath d='M254 33l7-14 7 14zM257 24l4-8 4 8z' fill='%23648575' fill-opacity='0.5'/%3E%3Cpath d='M0 36 L0 31 Q40 24 85 30 T175 29 T265 31 T320 31 L320 36 Z' fill='%23e8e8e8' fill-opacity='0.95'/%3E%3Cpath d='M0 31 Q40 24 85 30 T175 29 T265 31 T320 31' stroke='%23cbd5e1' stroke-width='1.2' fill='none'/%3E%3C/g%3E%3C/svg%3E");
}

body.site-theme-christmas .footer-links {
    border-top: none;
}

/* Velmi jemný hvězdičkový třpyt v pozadí tmavého copyright proužku */
body.site-theme-christmas .copyright {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='36' viewBox='0 0 220 36'%3E%3Cg fill='%23fde047' fill-opacity='0.18'%3E%3Ccircle cx='22' cy='10' r='1.2'/%3E%3Ccircle cx='78' cy='24' r='1'/%3E%3Ccircle cx='138' cy='12' r='1.3'/%3E%3Ccircle cx='192' cy='22' r='1.1'/%3E%3C/g%3E%3C/svg%3E");
}


/* ==========================================================================
   2. JARNÍ MOTIV (body.site-theme-spring) – připraveno pro jarní sezónu
   - Zachovává původní barvy webu
   - Přidává jemné jarní detaily v hlavičce, kartě produktu a nad patičkou
   ========================================================================== */

body.site-theme-spring #header-area {
    position: relative;
}

body.site-theme-spring #header-area::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='100' viewBox='0 0 180 100'%3E%3Cg fill='%23ffffff' fill-opacity='0.14'%3E%3Ccircle cx='34' cy='26' r='3'/%3E%3Ccircle cx='40' cy='26' r='3'/%3E%3Ccircle cx='37' cy='21' r='3'/%3E%3Ccircle cx='37' cy='31' r='3'/%3E%3Ccircle cx='140' cy='62' r='2.5'/%3E%3Ccircle cx='145' cy='62' r='2.5'/%3E%3Ccircle cx='142.5' cy='58' r='2.5'/%3E%3Ccircle cx='142.5' cy='66' r='2.5'/%3E%3C/g%3E%3C/svg%3E");
}

body.site-theme-spring .product-col {
    position: relative;
}

body.site-theme-spring .product-col > div.discount {
    z-index: 3;
}

body.site-theme-spring .product-col::after {
    content: "";
    position: absolute;
    top: 8px;
    right: 8px;
    width: 22px;
    height: 22px;
    pointer-events: none;
    z-index: 1;
    opacity: 0.45;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='%23f472b6'%3E%3Ccircle cx='12' cy='7' r='3.2'/%3E%3Ccircle cx='17' cy='12' r='3.2'/%3E%3Ccircle cx='12' cy='17' r='3.2'/%3E%3Ccircle cx='7' cy='12' r='3.2'/%3E%3C/g%3E%3Ccircle cx='12' cy='12' r='2.6' fill='%23facc15'/%3E%3C/svg%3E");
    transition: opacity 0.25s ease, transform 0.35s ease;
}

body.site-theme-spring .product-col:hover::after {
    opacity: 0.8;
    transform: rotate(18deg) scale(1.06);
}

body.site-theme-spring #footer-area::before {
    content: "";
    display: block;
    width: 100%;
    height: 28px;
    pointer-events: none;
    background-repeat: repeat-x;
    background-position: bottom center;
    background-size: 280px 28px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='280' height='28' viewBox='0 0 280 28'%3E%3Cg fill='none'%3E%3Cpath d='M36 24 Q33 14 28 11 M36 24 Q38 13 43 10' stroke='%234ade80' stroke-opacity='0.65' stroke-width='1.5' stroke-linecap='round'/%3E%3Ccircle cx='43' cy='9' r='2.3' fill='%23f472b6' fill-opacity='0.75'/%3E%3Cpath d='M144 24 Q142 15 138 12 M144 24 Q147 13 151 11' stroke='%2322c55e' stroke-opacity='0.55' stroke-width='1.5' stroke-linecap='round'/%3E%3Ccircle cx='151' cy='10' r='2.2' fill='%23facc15' fill-opacity='0.8'/%3E%3Cpath d='M234 24 Q231 14 227 12 M234 24 Q238 14 242 11' stroke='%234ade80' stroke-opacity='0.6' stroke-width='1.5' stroke-linecap='round'/%3E%3Ccircle cx='227' cy='11' r='2.1' fill='%23fb7185' fill-opacity='0.7'/%3E%3Cpath d='M0 28 L0 23 Q70 19 140 23 T280 23 L280 28 Z' fill='%23e8e8e8' fill-opacity='0.95'/%3E%3C/g%3E%3C/svg%3E");
}

body.site-theme-spring .footer-links {
    border-top: none;
}
