/* Seasonal designs, switched on by body.season-* (see pages.context_processors.current_season).
   Selectors out-rank the plain `div.slider` rules in mains/*-main.css, so load order does not matter. */

/* Flakes live inside the slider: z-index:0 makes it a stacking context so flakes (z-index:-1) paint above
   the slider background but below its content. The plugin's own inline z-index is a float, which CSS drops,
   so the .flake rule below sets it. Christmas uses .snowflake instead (seasons.js), same stacking. */
body[class*="season-"]:not(.modelprofile) div.slider { position: relative; z-index: 0; overflow: hidden; }
.flake { pointer-events: none; z-index: -1; }
.snowflake { position: absolute; top: 0; pointer-events: none; z-index: -1; will-change: transform; }
.snowflake.c1 { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 48 48'%3E%3Cdefs%3E%3Cg id='s'%3E%3Cpath id='a' d='M24 24V4M24 15l-5.2-3M24 15l5.2-3M24 10l-3.5-2M24 10l3.5-2'/%3E%3Cuse xlink:href='%23a' transform='rotate(60 24 24)'/%3E%3Cuse xlink:href='%23a' transform='rotate(120 24 24)'/%3E%3Cuse xlink:href='%23a' transform='rotate(180 24 24)'/%3E%3Cuse xlink:href='%23a' transform='rotate(240 24 24)'/%3E%3Cuse xlink:href='%23a' transform='rotate(300 24 24)'/%3E%3Ccircle cx='24' cy='24' r='2.5'/%3E%3C/g%3E%3C/defs%3E%3Cg fill='none' stroke-linecap='round' stroke-linejoin='round'%3E%3Cuse xlink:href='%23s' stroke='rgba(0,0,0,.28)' stroke-width='4'/%3E%3Cuse xlink:href='%23s' stroke='%23fff' stroke-width='2.2'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat; }
.snowflake.c2 { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 48 48'%3E%3Cdefs%3E%3Cg id='s'%3E%3Cpath id='a' d='M24 24V6.5M24 14l-6.9-4M24 14l6.9-4M22.5 4.5a1.5 1.5 0 1 0 3 0a1.5 1.5 0 1 0-3 0'/%3E%3Cuse xlink:href='%23a' transform='rotate(60 24 24)'/%3E%3Cuse xlink:href='%23a' transform='rotate(120 24 24)'/%3E%3Cuse xlink:href='%23a' transform='rotate(180 24 24)'/%3E%3Cuse xlink:href='%23a' transform='rotate(240 24 24)'/%3E%3Cuse xlink:href='%23a' transform='rotate(300 24 24)'/%3E%3Ccircle cx='24' cy='24' r='3.5'/%3E%3C/g%3E%3C/defs%3E%3Cg fill='none' stroke-linecap='round' stroke-linejoin='round'%3E%3Cuse xlink:href='%23s' stroke='rgba(0,0,0,.28)' stroke-width='4'/%3E%3Cuse xlink:href='%23s' stroke='%23fff' stroke-width='2.2'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat; }
.snowflake.dot { border-radius: 50%; background: #fff; box-shadow: 0 0 6px 1px rgba(255, 255, 255, .85), 0 0 2px rgba(0, 0, 0, .35); }

/* christmas */
/* The banner layout below applies only with .season-banner, which only templates/base.html (the main XSpartner site)
   sets: the banner carries the XSpartner name. Sister sites keep
   their own header photo and get only the snow and the Christmas buttons. */
/* The fixed site nav overlays the top of the header, so the banner (1179x389, carries its own lettering) starts
   below it: --nav is the nav's measured height per breakpoint (it wraps to 2-3 rows on narrow desktops), --banner the
   banner's height at full width. Dark red fills the nav area. The header has rounded bottom corners, so the page
   content (.mainWrapper) must not overlap it: its -45px margin becomes a 10px white gap. The WhatsApp icon is hidden.
   Desktop: the buttons are pinned to the bottom of the banner, clear of the lettering. Header = nav + banner.
   Phone: the whole banner sits below the nav, the buttons below it on dark red. */
body.season-christmas.season-banner:not(.modelprofile) div.slider {
    --nav: 51px;
    --banner: calc(100vw * 389 / 1179);
    border-radius: 0 0 22px 22px;
    background: #1a0005 url("/static/img/slider/xmas/merry-sexy-christmas.jpg") center var(--nav) / 100% auto no-repeat;
}
body.season-christmas.season-banner:not(.modelprofile) div.slider .tickets-block { display: none; }
body.season-christmas.season-banner:not(.modelprofile) .mainWrapper { margin-top: 10px; }
@media (max-width: 1199px) { body.season-christmas.season-banner:not(.modelprofile) div.slider { --nav: 86px; } }
@media (max-width: 991px) { body.season-christmas.season-banner:not(.modelprofile) div.slider { --nav: 126px; } }
@media (max-width: 767px) { body.season-christmas.season-banner:not(.modelprofile) div.slider { --nav: 41px; } }
@media (min-width: 801px) {
    body.season-christmas.season-banner:not(.modelprofile) div.slider { height: calc(var(--nav) + var(--banner)); }
    /* Inline padding-top needs !important. */
    body.season-christmas.season-banner:not(.modelprofile) div.slider > .container {
        position: absolute; left: 0; right: 0; bottom: 16px; padding-top: 0 !important;
    }
}
@media (max-width: 800px) {
    body.season-christmas.season-banner:not(.modelprofile) div.slider {
        height: auto;
        box-shadow: none;
        border-radius: 0 0 18px 18px;
        background:
            url("/static/img/slider/xmas/merry-sexy-christmas.jpg") center var(--nav) / 100% auto no-repeat,
            radial-gradient(ellipse at 50% 80%, #a3001f 0%, #5a0012 50%, #1a0005 100%);
    }
    body.season-christmas.season-banner:not(.modelprofile) div.slider > .container {
        padding-top: calc(var(--nav) + var(--banner) + 10px) !important;
        padding-bottom: 12px;
    }
    body.season-christmas.season-banner:not(.modelprofile) div.slider .sliderBanner { margin-top: 0; }
}
body.season-christmas .sliderBanner .btn-primary,
body.season-christmas .btn-signup, body.season-christmas .btn-login {
    background: linear-gradient(180deg, #c8102e 0%, #7a0015 100%); border: 2px solid #d4af37; color: #fff;
    letter-spacing: 1px; box-shadow: 0 0 14px rgba(255, 30, 70, .55);
}

/* halloween */
body.season-halloween:not(.modelprofile) div.slider { box-shadow: inset 0 0 0 100vmax rgba(90, 30, 120, 0.45); }
body.season-halloween .sliderBanner .btn-primary,
body.season-halloween .btn-signup, body.season-halloween .btn-login {
    background: #e66a00; border: 2px solid #1a1a1a; color: #1a1a1a;
}

/* summer */
body.season-summer:not(.modelprofile) div.slider { box-shadow: inset 0 0 0 100vmax rgba(255, 190, 40, 0.28); }
body.season-summer .sliderBanner .btn-primary,
body.season-summer .btn-signup, body.season-summer .btn-login {
    background: #00a6a6; border: 2px solid #fff; color: #fff;
}
