/*
 * Seasonal looks (loaded only while one is on: siteSeason() in app/helpers.php, set from the admin's Promo year page).
 * body.rf2-look-{look}: an accessory on the logo (images/season/{look}.svg), the offer ribbon above the lobby shelf in
 * the season's colours, a garland on the top bar for some looks, and the falling decorations (js/season.js).
 */
.rf2-look { --s-a: #37256B; --s-b: #C12457; --s-img: url(../images/season/party.svg); --hat-l: 58%; --hat-t: -18%; --hat-w: 42%; --hat-rot: 14deg; --hat-z: 2; }
.rf2-look-xmas { --s-a: #A3162B; --s-b: #0F5B36; --s-img: url(../images/season/xmas.svg); --hat-l: 14%; --hat-t: -22%; --hat-w: 46%; --hat-rot: -16deg; }
.rf2-look-thanksgiving { --s-a: #7A3410; --s-b: #D9822B; --s-img: url(../images/season/thanksgiving.svg); --hat-l: 20%; --hat-t: -26%; --hat-w: 44%; --hat-rot: -14deg; }
.rf2-look-halloween { --s-a: #3B1F5C; --s-b: #E8742A; --s-img: url(../images/season/halloween.svg); --hat-l: 16%; --hat-t: -34%; --hat-w: 46%; --hat-rot: -14deg; }
.rf2-look-newyear { --s-a: #1E1B4B; --s-b: #B8860B; --s-img: url(../images/season/newyear.svg); --hat-l: 22%; --hat-t: -34%; --hat-w: 34%; --hat-rot: -18deg; }
.rf2-look-valentine { --s-a: #9F1239; --s-b: #EC4899; --s-img: url(../images/season/valentine.svg); --hat-l: 66%; --hat-t: -14%; --hat-w: 36%; --hat-rot: 10deg; }
.rf2-look-stpatricks { --s-a: #14532D; --s-b: #22A35A; --s-img: url(../images/season/stpatricks.svg); --hat-l: 18%; --hat-t: -30%; --hat-w: 42%; --hat-rot: -14deg; }
.rf2-look-july4 { --s-a: #1E3A8A; --s-b: #B91C1C; --s-img: url(../images/season/july4.svg); --hat-l: 20%; --hat-t: -30%; --hat-w: 40%; --hat-rot: -14deg; }
.rf2-look-diwali { --s-a: #7C2D12; --s-b: #E8930C; --s-img: url(../images/season/diwali.svg); --hat-l: 66%; --hat-t: -8%; --hat-w: 38%; --hat-rot: 0deg; }
.rf2-look-easter { --s-a: #6D28D9; --s-b: #EC79B8; --s-img: url(../images/season/easter.svg); --hat-l: 31%; --hat-t: -40%; --hat-w: 38%; --hat-rot: 0deg; --hat-z: -1; }
.rf2-look-winter { --s-a: #0E3A7A; --s-b: #3FA9F5; --s-img: url(../images/season/winter.svg); --hat-l: 24%; --hat-t: -30%; --hat-w: 40%; --hat-rot: -10deg; }
.rf2-look-blackfriday { --s-a: #050507; --s-b: #2B2B33; --s-img: url(../images/season/blackfriday.svg); --hat-l: 64%; --hat-t: -10%; --hat-w: 42%; --hat-rot: 12deg; }

/* the logo accessory */
.rf2-look .rf2-logo { position: relative; display: inline-block; isolation: isolate; }
.rf2-look .rf2-side-logo { text-align: center; }
.rf2-look .rf2-logo::after {
    content: ""; position: absolute; left: var(--hat-l); top: var(--hat-t); width: var(--hat-w); aspect-ratio: 6 / 5; z-index: var(--hat-z);
    background: var(--s-img) center / contain no-repeat; transform: rotate(var(--hat-rot)); transform-origin: 50% 90%;
    filter: drop-shadow(0 3px 5px rgba(0, 0, 0, .45)); pointer-events: none; animation: rf2-hat-in .7s cubic-bezier(.3, 1.5, .5, 1) both;
}
@keyframes rf2-hat-in { from { opacity: 0; transform: translateY(-30%) rotate(var(--hat-rot)) scale(.6); } }

/* the offer ribbon above the lobby shelf */
.rf2-season-bar {
    position: relative; overflow: hidden; display: flex; align-items: center; gap: 16px; margin: 6px 0 18px; padding: 14px 18px;
    border-radius: var(--rf-radius); background: linear-gradient(110deg, var(--s-a), var(--s-b)); color: #fff !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .35), inset 0 0 0 1px rgba(255, 255, 255, .14);
}
.rf2-season-bar::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .18) 45%, transparent 60%); transform: translateX(-100%); animation: rf2-shine 5s ease-in-out 1s infinite; pointer-events: none; }
@keyframes rf2-shine { 0%, 60% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
.rf2-season-ico { flex: 0 0 64px; height: 54px; background: var(--s-img) center / contain no-repeat; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .4)); }
.rf2-season-copy { flex: 1 1 auto; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rf2-season-eyebrow { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; opacity: .85; }
.rf2-season-copy strong { font: 800 19px/1.2 Unbounded, Manrope, sans-serif; }
.rf2-season-copy span:last-child { font-size: 14px; opacity: .92; }
.rf2-season-bar .rf2-btn { flex: 0 0 auto; position: relative; }
.rf2-season-bar:hover .rf2-btn { background: var(--rf-gold-hi); }
@media (max-width: 640px) {
    .rf2-season-bar { flex-wrap: wrap; gap: 10px 12px; padding: 12px 14px; }
    .rf2-season-ico { flex-basis: 44px; height: 40px; }
    .rf2-season-copy { flex-basis: calc(100% - 60px); }
    .rf2-season-copy strong { font-size: 16px; }
    .rf2-season-bar .rf2-btn { width: 100%; }
}

/* garlands on the top bar */
.rf2-look-xmas .rf2-top::after, .rf2-look-july4 .rf2-top::after, .rf2-look-newyear .rf2-top::after, .rf2-look-party .rf2-top::after, .rf2-look-diwali .rf2-top::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -7px; height: 14px; pointer-events: none;
}
.rf2-look-xmas .rf2-top::after, .rf2-look-diwali .rf2-top::after {
    background:
        radial-gradient(circle at 50% 55%, #ff4d5e 0 3.5px, transparent 4.5px) 0 0 / 54px 14px,
        radial-gradient(circle at 50% 55%, #7CFF7A 0 3.5px, transparent 4.5px) 18px 0 / 54px 14px,
        radial-gradient(circle at 50% 55%, #FFD84D 0 3.5px, transparent 4.5px) 36px 0 / 54px 14px;
    filter: drop-shadow(0 0 4px rgba(255, 220, 120, .8)); animation: rf2-twinkle 1.4s steps(2, jump-none) infinite;
}
.rf2-look-diwali .rf2-top::after {
    background:
        radial-gradient(circle at 50% 55%, #FFD84D 0 3px, transparent 4px) 0 0 / 40px 14px,
        radial-gradient(circle at 50% 55%, #FF9F1C 0 3px, transparent 4px) 20px 0 / 40px 14px;
}
@keyframes rf2-twinkle { 0% { opacity: 1; } 100% { opacity: .55; } }
.rf2-look-july4 .rf2-top::after, .rf2-look-newyear .rf2-top::after, .rf2-look-party .rf2-top::after {
    height: 12px; bottom: -12px;
    background: conic-gradient(from 315deg at 50% 100%, var(--s-b) 0 90deg, transparent 0) 0 0 / 28px 12px repeat-x,
                conic-gradient(from 315deg at 50% 100%, #fff 0 90deg, transparent 0) 14px 0 / 28px 12px repeat-x;
    opacity: .9;
}

/* icicles along the top bar in winter */
.rf2-look-winter .rf2-top::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -14px; height: 14px; pointer-events: none; opacity: .9;
    background: conic-gradient(from 330deg at 50% 100%, #DCEBFF 0 60deg, transparent 0) 0 0 / 22px 14px repeat-x,
                conic-gradient(from 340deg at 50% 100%, #A9D4FF 0 40deg, transparent 0) 11px 0 / 22px 9px repeat-x;
}

/* falling decorations (js/season.js) */
.rf2-season-fx { position: fixed; inset: 0; z-index: 25; pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
    .rf2-look .rf2-logo::after, .rf2-season-bar::before, .rf2-look .rf2-top::after { animation: none !important; }
    .rf2-season-fx { display: none; }
}
