﻿/*
    SteveKraft.com Shared Seasonal System
    full    = major brand / entry pages
    subtle  = content pages
    utility = config / admin / file pages
*/

body {
    --seasonal-image: none;
    --seasonal-overlay-top: rgba(4,10,18,.68);
    --seasonal-overlay-bottom: rgba(4,10,18,.88);
}

body[data-website-theme="newyear"] {
    --seasonal-image: url("/Graphics/Holidays/NewYear/newyear-background.jpg");
}

body[data-website-theme="valentines"] {
    --seasonal-image: url("/Graphics/Holidays/Valentines/valentines-background.jpg");
}

body[data-website-theme="presidents"] {
    --seasonal-image: url("/Graphics/Holidays/Presidents/presidents-background.jpg");
}

body[data-website-theme="stpatricks"] {
    --seasonal-image: url("/Graphics/Holidays/StPatricks/stpatricks-background.jpg");
}

body[data-website-theme="memorial"] {
    --seasonal-image: url("/Graphics/Holidays/MemorialDay/memorial-background.jpg");
}

body[data-website-theme="fourthofjuly"] {
    --seasonal-image: url("/Graphics/Holidays/FourthOfJuly/fourth-background.jpg");
}

body[data-website-theme="laborday"] {
    --seasonal-image: url("/Graphics/Holidays/LaborDay/labor-day-background.jpg");
}

body[data-website-theme="halloween"] {
    --seasonal-image: url("/Graphics/Holidays/Halloween/halloween-background.png");
}

body[data-website-theme="thanksgiving"] {
    --seasonal-image: url("/Graphics/Holidays/Thanksgiving/thanksgiving-background.jpg");
}

body[data-website-theme="christmas"] {
    --seasonal-image: url("/Graphics/Holidays/Christmas/christmas-background.jpg");
}

/* FULL HERO */
body[data-seasonal-level="full"][data-website-theme]:not([data-website-theme="normal"]) .hero {
    background:
        linear-gradient(
            var(--seasonal-overlay-top),
            var(--seasonal-overlay-bottom)
        ),
        var(--seasonal-image)
        center center / cover no-repeat;
}

/* SUBTLE HERO */
body[data-seasonal-level="subtle"][data-website-theme]:not([data-website-theme="normal"]) .hero {
    position: relative;
}

body[data-seasonal-level="subtle"][data-website-theme]:not([data-website-theme="normal"]) .hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            rgba(4,10,18,.84),
            rgba(4,10,18,.94)
        ),
        var(--seasonal-image)
        center center / cover no-repeat;
    opacity: .45;
    pointer-events: none;
}

body[data-seasonal-level="subtle"] .hero > * {
    position: relative;
    z-index: 1;
}

/* UTILITY */
body[data-seasonal-level="utility"][data-website-theme]:not([data-website-theme="normal"]) {
    border-top: 3px solid var(--green,#5ebcff);
}

/* SHARED BADGE */
.site-seasonal-badge {
    display: none;
    margin: 8px 0 14px;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    opacity: .85;
}

body[data-website-theme]:not([data-website-theme="normal"]) .site-seasonal-badge {
    display: inline-block;
}

/* HOMEPAGE ARTWORK / SYMBOLS */
#seasonal-artwork {
    display: none;
    margin: 0 auto 18px;
}

#seasonal-artwork.active {
    display: block;
}

#seasonal-artwork img {
    display: block;
    max-width: min(620px,94%);
    max-height: 220px;
    width: auto;
    height: auto;
    margin: 0 auto 12px;
    filter: drop-shadow(0 10px 30px rgba(0,0,0,.45));
}

.seasonal-symbols {
    font-size: clamp(42px,8vw,78px);
    line-height: 1.2;
    letter-spacing: .12em;
    margin-bottom: 8px;
    filter: drop-shadow(0 8px 22px rgba(0,0,0,.35));
}

/* HOLIDAY ACCENTS */
body[data-website-theme="newyear"] {
    --green: #f4d35e;
}

body[data-website-theme="valentines"] {
    --green: #fb7185;
}

body[data-website-theme="stpatricks"] {
    --green: #22c55e;
}

body[data-website-theme="presidents"],
body[data-website-theme="memorial"],
body[data-website-theme="fourthofjuly"] {
    --green: #3b82f6;
}

body[data-website-theme="laborday"] {
    --green: #60a5fa;
}

body[data-website-theme="thanksgiving"] {
    --green: #ea8a2f;
}

body[data-website-theme="halloween"] {
    --green: #ff8a1f;
}

body[data-website-theme="christmas"] {
    --green: #32c766;
}

body[data-website-theme="newyear"] .eyebrow,
body[data-website-theme="newyear"] .card-link {
    color: #f4d35e;
}

body[data-website-theme="valentines"] .eyebrow,
body[data-website-theme="valentines"] .card-link {
    color: #fda4af;
}

body[data-website-theme="stpatricks"] .eyebrow,
body[data-website-theme="stpatricks"] .card-link {
    color: #86efac;
}

body[data-website-theme="presidents"] .eyebrow,
body[data-website-theme="memorial"] .eyebrow,
body[data-website-theme="fourthofjuly"] .eyebrow,
body[data-website-theme="presidents"] .card-link,
body[data-website-theme="memorial"] .card-link,
body[data-website-theme="fourthofjuly"] .card-link {
    color: #93c5fd;
}

body[data-website-theme="laborday"] .eyebrow,
body[data-website-theme="laborday"] .card-link {
    color: #93c5fd;
}

body[data-website-theme="thanksgiving"] .eyebrow,
body[data-website-theme="thanksgiving"] .card-link {
    color: #fdba74;
}

body[data-website-theme="halloween"] .eyebrow,
body[data-website-theme="halloween"] .card-link {
    color: #ffb25e;
}

body[data-website-theme="christmas"] .eyebrow,
body[data-website-theme="christmas"] .card-link {
    color: #8fe3ad;
}

/* HOMEPAGE TITLE GRADIENTS */
body[data-seasonal-content="home"][data-website-theme="newyear"] .hero h1 {
    background: linear-gradient(90deg,#fff,#f4d35e,#93c5fd);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

body[data-seasonal-content="home"][data-website-theme="valentines"] .hero h1 {
    background: linear-gradient(90deg,#fff,#fda4af,#f472b6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

body[data-seasonal-content="home"][data-website-theme="stpatricks"] .hero h1 {
    background: linear-gradient(90deg,#fff,#86efac,#facc15);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

body[data-seasonal-content="home"][data-website-theme="presidents"] .hero h1,
body[data-seasonal-content="home"][data-website-theme="memorial"] .hero h1,
body[data-seasonal-content="home"][data-website-theme="fourthofjuly"] .hero h1 {
    background: linear-gradient(90deg,#ef4444,#fff,#60a5fa);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

body[data-seasonal-content="home"][data-website-theme="laborday"] .hero h1 {
    background: linear-gradient(90deg,#fff,#93c5fd,#fca5a5);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

body[data-seasonal-content="home"][data-website-theme="thanksgiving"] .hero h1 {
    background: linear-gradient(90deg,#fff,#fdba74,#facc15);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

body[data-seasonal-content="home"][data-website-theme="halloween"] .hero h1 {
    background: linear-gradient(90deg,#fff,#ffb347,#b690ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

body[data-seasonal-content="home"][data-website-theme="christmas"] .hero h1 {
    background: linear-gradient(90deg,#fff,#70e59a,#f4d35e,#ff6b72);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

body[data-website-theme="halloween"] .brand-badge,
body[data-website-theme="halloween"] .ai-logo,
body[data-website-theme="halloween"] .assistant .avatar {
    background: linear-gradient(135deg,#ffb347,#ff8a1f);
    color: #190c02;
}

body[data-website-theme="christmas"] .brand-badge,
body[data-website-theme="christmas"] .ai-logo,
body[data-website-theme="christmas"] .assistant .avatar {
    background: linear-gradient(135deg,#45d483,#198754);
    color: #04150b;
}

body[data-website-theme="halloween"] #send,
body[data-website-theme="halloween"] .button.primary {
    background: linear-gradient(135deg,#ff8a1f,#d85b13);
}

body[data-website-theme="christmas"] #send,
body[data-website-theme="christmas"] .button.primary {
    background: linear-gradient(135deg,#1f9d55,#13763f);
}

/* AI THINKING */
#status.ai-thinking {
    color: #ffd166 !important;
    font-weight: 800;
    font-size: 14px;
    letter-spacing: .3px;
    text-shadow:
        0 0 8px rgba(255,209,102,.85),
        0 0 18px rgba(255,209,102,.45);
    animation: aiThinkingPulse 1s ease-in-out infinite;
}

@keyframes aiThinkingPulse {
    0%,100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: .45;
        transform: scale(1.04);
    }
}

@media (max-width:760px) {
    #seasonal-artwork img {
        max-width: 90%;
        max-height: 170px;
    }

    .seasonal-symbols {
        letter-spacing: .04em;
    }
}

@media (prefers-reduced-motion: reduce) {
    #status.ai-thinking {
        animation: none;
    }
}