/* ==========================================================================
   SEASONAL THEMES v2: black-friday. "AI glass": nero, bianco e un colore acceso.
   Rosso di base, verde con la classe bf-green (in anteprima: &bfc=green).
   Sticker fustellati nell'header, cartellino di vetro appeso, scintille AI
   tenui sul fondo, coupon e percentuali che cadono. Il footer resta semplice: una linea di
   vetro e un bagliore leggero (il proprietario ha bocciato barre e sticker).
   In piu, solo in questa festa: gli sticker sconto sulle card dei brand e il
   box offerta sulla pagina brand (inc/black-friday.php li inserisce).
   Disegni in assets/img/season/blackfriday-{red,green}-*.svg (alza ?v= quando
   ne cambi uno). Sorgenti: /home/forge/madeprompt-tools/seasonal-themes/gen/blackfriday.py
   ========================================================================== */

@font-face {
    font-family: "BF Display";
    src: url("/wp-content/themes/madeprompt/assets/fonts/bf-display.woff?v=1") format("woff");
    font-weight: 800;
    font-display: swap;
}

body.season-black-friday {
    --bf-acc: #ff2b4a;
    --bf-acc-rgb: 255, 43, 74;
    --bf-on: #ffffff;
    --season-base-a: #0c0c0e;
    --season-base-b: #151518;
    --season-dark-a: #070708;
    --season-dark-b: #0d0d0f;
    --season-veil: rgba(255, 43, 74, 0.05);
    --season-top: rgba(255, 43, 74, 0.13);
    --season-br: rgba(255, 43, 74, 0.06);
    --season-bl: rgba(140, 160, 255, 0.05);
    --season-glass: 22, 22, 25;
    --season-glass-hover: 34, 34, 39;
    --season-glow-1: rgba(255, 43, 74, 0.16);
    --season-glow-2: rgba(255, 255, 255, 0.05);
    --season-bg-1: url("/wp-content/themes/madeprompt/assets/img/season/blackfriday-red-bg-bl.svg?v=2");
    --season-bg-2: url("/wp-content/themes/madeprompt/assets/img/season/blackfriday-red-bg-br.svg?v=2");
    --season-bg-3: url("/wp-content/themes/madeprompt/assets/img/season/blackfriday-red-bg-edge.svg?v=2");
    --season-hang: url("/wp-content/themes/madeprompt/assets/img/season/blackfriday-red-tag.svg?v=1");
    --season-hang-anim: season-swing;
    --season-hang-anim-sm: season-swing;
    --season-footer: none;
}

body.season-black-friday.bf-green {
    --bf-acc: #2dff8a;
    --bf-acc-rgb: 45, 255, 138;
    --bf-on: #06140c;
    --season-veil: rgba(45, 255, 138, 0.04);
    --season-top: rgba(45, 255, 138, 0.10);
    --season-br: rgba(45, 255, 138, 0.05);
    --season-glow-1: rgba(45, 255, 138, 0.13);
    --season-bg-1: url("/wp-content/themes/madeprompt/assets/img/season/blackfriday-green-bg-bl.svg?v=2");
    --season-bg-2: url("/wp-content/themes/madeprompt/assets/img/season/blackfriday-green-bg-br.svg?v=2");
    --season-bg-3: url("/wp-content/themes/madeprompt/assets/img/season/blackfriday-green-bg-edge.svg?v=2");
    --season-hang: url("/wp-content/themes/madeprompt/assets/img/season/blackfriday-green-tag.svg?v=1");
}

/* --- Header: a few stickers in the corners, the BLACK FRIDAY sticker right of
   the logo, the glass tag hanging left of it. (DEALS and AI were taken out on
   the owner's ask: too busy.) */
body.season-black-friday .header-gradient-background::before {
    background-image:
        url("/wp-content/themes/madeprompt/assets/img/season/blackfriday-red-corner-l.svg?v=1"),
        url("/wp-content/themes/madeprompt/assets/img/season/blackfriday-red-corner-r.svg?v=1");
    background-size: 140px 120px, 140px 120px;
    background-position: left top, right top;
    background-repeat: no-repeat, no-repeat;
}

body.season-black-friday.bf-green .header-gradient-background::before {
    background-image:
        url("/wp-content/themes/madeprompt/assets/img/season/blackfriday-green-corner-l.svg?v=1"),
        url("/wp-content/themes/madeprompt/assets/img/season/blackfriday-green-corner-r.svg?v=1");
}

body.season-black-friday .header-gradient-background::after {
    background-image: url("/wp-content/themes/madeprompt/assets/img/season/blackfriday-red-main.svg?v=1");
    background-size: 256px 160px;
    background-position: calc(50% + 300px) center;
}

body.season-black-friday.bf-green .header-gradient-background::after {
    background-image: url("/wp-content/themes/madeprompt/assets/img/season/blackfriday-green-main.svg?v=1");
}

/* --- Footer: no drawing, just a thin glass line and a soft glow from below. */
body.season-black-friday .site-footer {
    padding-bottom: calc(1.25rem + 26px);
    background:
        linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3) 30%, rgba(var(--bf-acc-rgb), 0.9) 50%, rgba(255, 255, 255, 0.3) 70%, transparent) no-repeat center bottom 16px / min(760px, 80%) 1px,
        radial-gradient(50% 100% at 50% 100%, rgba(var(--bf-acc-rgb), 0.16), transparent 70%) no-repeat center bottom / 100% 110px;
}

/* What falls: coupons, price tags and % signs (drawn in inc/black-friday.php,
   accent parts in currentColor). They sway a little instead of spinning. */
.season-sky-chips .season-p {
    top: -40px;
    height: auto;
    color: var(--bf-acc);
    opacity: 0.9;
    animation-name: bf-fall;
}

.season-sky-chips .season-p svg {
    display: block;
    width: 100%;
    height: auto;
}

@keyframes bf-fall {
    0%   { transform: translate3d(0, 0, 0) rotate(-14deg); }
    50%  { transform: translate3d(24px, 52vh, 0) rotate(12deg); }
    100% { transform: translate3d(-10px, 112vh, 0) rotate(-8deg); }
}

@media (max-width: 768px) {
    body.season-black-friday .site-footer {
        padding-bottom: calc(1rem + 22px);
    }

    body.season-black-friday .header-gradient-background::before {
        /* The right corner is left out: on a phone it would sit on the BLACK FRIDAY sticker. */
        background-size: 70px 60px, 0 0;
        background-position: left top, right top;
    }

    body.season-black-friday .header-gradient-background::after {
        background-size: 100px 62px;
        background-position: calc(50% + 108px) 0;
    }
}

/* ==========================================================================
   Deals: a sticker on the brand photo, a chip next to the brand name, a glass
   line above the button, and on the brand page a chip under the title that
   jumps to the deal box right under the photo. Only brands with a deal.
   ========================================================================== */
.bf-img {
    position: relative;
}

.bf-stamp {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 6;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 7px 12px 8px;
    border: 3px solid #fff;
    border-radius: 12px;
    background: var(--bf-acc);
    color: var(--bf-on);
    box-shadow: 0 7px 16px rgba(0, 0, 0, 0.5);
    transform: rotate(-6deg);
    overflow: hidden;
    line-height: 1;
    text-align: center;
    pointer-events: none;
}

/* Gloss on the top half, and a light that crosses the sticker every few seconds. */
.bf-stamp::before,
.bf-stamp::after {
    content: "";
    position: absolute;
    pointer-events: none;
}

.bf-stamp::before {
    inset: 0 0 50% 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0.05));
}

.bf-stamp::after {
    top: -30%;
    bottom: -30%;
    left: -70%;
    width: 45%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
    transform: skewX(-20deg);
    animation: bf-shine 4.8s ease-in-out infinite;
}

@keyframes bf-shine {
    0%, 62% { left: -70%; }
    88%, 100% { left: 130%; }
}

.bf-stamp-k,
.bf-stamp-v,
.bf-name,
.bf-jump {
    font-family: "BF Display", system-ui, sans-serif;
    font-weight: 800;
}

.bf-stamp-k,
.bf-stamp-v {
    position: relative;
}

.bf-stamp-k {
    font-size: 0.5rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.bf-stamp-v {
    font-size: 1.45rem;
    letter-spacing: -0.02em;
}

/* The chip next to the brand name. Card titles paint their text with a clipped
   gradient, so the chip resets the fill and the clip for itself. */
.bf-name {
    display: inline-block;
    margin-left: 0.4em;
    padding: 0.3em 0.48em 0.32em;
    border: 2px solid #fff;
    border-radius: 7px;
    background: var(--bf-acc);
    -webkit-background-clip: padding-box;
    background-clip: padding-box;
    color: var(--bf-on);
    -webkit-text-fill-color: var(--bf-on);
    font-size: 0.52em;
    line-height: 1;
    letter-spacing: 0;
    text-transform: none;
    vertical-align: 0.25em;
    white-space: nowrap;
    transform: rotate(-5deg);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.45);
}

.bf-name.bf-name-wide {
    font-size: 0.42em;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.brand-card.bf-has,
.pg-brand-card.bf-has,
.related-brand-card.bf-has {
    border-color: rgba(var(--bf-acc-rgb), 0.5);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 26px rgba(var(--bf-acc-rgb), 0.14);
}

.brand-card.bf-has:hover,
.pg-brand-card.bf-has:hover,
.related-brand-card.bf-has:hover {
    border-color: rgba(var(--bf-acc-rgb), 0.8);
}

.bf-deal {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    width: 100%;
    box-sizing: border-box;
    padding: 11px 12px 12px;
    border: 1px solid rgba(var(--bf-acc-rgb), 0.55);
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 0 22px rgba(var(--bf-acc-rgb), 0.12);
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.84rem;
    line-height: 1.35;
    text-align: center;
}

.bf-deal-k,
.bf-panel-k {
    font-family: "BF Display", system-ui, sans-serif;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--bf-acc);
}

.bf-deal-k {
    font-size: 0.58rem;
}

.bf-deal b,
.bf-panel-main b {
    color: #fff;
    font-weight: 800;
}

.bf-deal s,
.bf-panel-main s {
    color: rgba(255, 255, 255, 0.45);
}

/* Brand page: the chip under the title, a link down to the deal box. */
.bf-jump {
    display: table;
    margin: -0.4rem auto 1.1rem;
    padding: 0.55rem 1rem 0.6rem;
    border: 3px solid #fff;
    border-radius: 999px;
    background: var(--bf-acc);
    color: var(--bf-on);
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    line-height: 1;
    text-decoration: none;
    text-transform: uppercase;
    transform: rotate(-3deg);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45), 0 0 22px rgba(var(--bf-acc-rgb), 0.35);
}

.bf-jump:hover,
.bf-jump:focus-visible {
    color: var(--bf-on);
    transform: rotate(-3deg) translateY(-1px);
}

/* The deal box: right under the photo, everything centred in one column. */
.bf-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    margin: 0 auto 3rem;
    padding: 30px 28px 24px;
    border: 2px solid rgba(var(--bf-acc-rgb), 0.85);
    border-radius: 22px;
    background:
        radial-gradient(70% 90% at 50% 0%, rgba(var(--bf-acc-rgb), 0.28), transparent 70%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.02));
    box-shadow:
        0 0 0 6px rgba(var(--bf-acc-rgb), 0.1),
        0 24px 60px rgba(0, 0, 0, 0.5),
        0 0 60px rgba(var(--bf-acc-rgb), 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.14);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    backdrop-filter: blur(18px) saturate(160%);
    text-align: center;
    scroll-margin-top: 90px;
}

/* The photo above keeps a 3rem gap to whatever follows; the box sits closer. */
.bf-panel.bf-after-media {
    margin-top: -1.9rem;
}

.bf-panel .bf-stamp {
    position: relative;
    top: auto;
    left: auto;
    margin-bottom: 18px;
    padding: 12px 20px 14px;
    border-width: 4px;
    border-radius: 16px;
}

.bf-panel .bf-stamp-k {
    font-size: 0.64rem;
}

.bf-panel .bf-stamp-v {
    font-size: 2.8rem;
}

.bf-panel-k {
    font-size: 0.72rem;
}

.bf-panel-main {
    max-width: 34ch;
    margin: 0.45rem 0 0.8rem;
    color: #fff;
    font-size: 1.35rem;
    line-height: 1.35;
    text-wrap: balance;
}

.bf-panel ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin: 0 0 1.2rem;
    padding: 0;
    list-style: none;
}

.bf-panel li {
    margin: 0;
    padding: 5px 11px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.82rem;
}

.bf-panel a.bf-panel-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55em;
    min-width: 260px;
    padding: 0.95rem 1.8rem;
    border: 3px solid #fff;
    border-radius: 999px;
    background: var(--bf-acc);
    color: var(--bf-on);
    font-family: "BF Display", system-ui, sans-serif;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-decoration: none;
    text-transform: uppercase;
    box-shadow: 0 8px 22px rgba(var(--bf-acc-rgb), 0.4);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.bf-panel a.bf-panel-btn:hover,
.bf-panel a.bf-panel-btn:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 10px 28px rgba(var(--bf-acc-rgb), 0.55);
    color: var(--bf-on);
}

.bf-panel-src {
    margin: 0.9rem 0 0;
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.72rem;
}

/* Preview only: deals seen in a brand's site code but not yet on a page I could read. */
.bf-check {
    position: relative;
    display: inline-block;
    margin-top: 3px;
    padding: 2px 6px;
    border-radius: 4px;
    background: #ffe14d;
    color: #111;
    -webkit-text-fill-color: #111;
    font: 800 0.5rem/1.2 system-ui, sans-serif;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.bf-panel-k .bf-check {
    margin: 0 0 0 8px;
    vertical-align: middle;
}

.is-pending.bf-stamp,
.is-pending.bf-name,
.is-pending.bf-jump,
.is-pending.bf-deal,
.is-pending.bf-panel {
    border-style: dashed;
}

@media (max-width: 768px) {
    .bf-panel.bf-after-media {
        margin-top: -1.35rem;
        margin-bottom: var(--section-gap-mobile, 2.25rem);
    }
}

@media (max-width: 620px) {
    .bf-stamp-v {
        font-size: 1.2rem;
    }

    .bf-panel {
        padding: 24px 16px 18px;
        border-radius: 18px;
    }

    .bf-panel .bf-stamp-v {
        font-size: 2.3rem;
    }

    .bf-panel-main {
        font-size: 1.12rem;
    }

    .bf-panel a.bf-panel-btn {
        align-self: stretch;
        min-width: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bf-stamp::after {
        animation: none;
        display: none;
    }
}
