/* public/css/themes.css
   Seasonal looks for the public website (Phase 6). The owner picks the look on the dashboard's Website page;
   js/site-content.js puts its name on the <html> tag:  <html data-theme="halloween">
   No name = the normal red look, and nothing in this file applies.

   Every look only changes the colour variables that css/styles.css already uses, so every page follows it.
   Each brand colour has been checked: white text on --color-primary and on --color-primary-dark reads at 4.5:1 or better.

   Link it right after css/styles.css:   <link rel="stylesheet" href="css/themes.css" /> */

html[data-theme="summer"] {
    --color-primary: #c25100;
    --color-primary-dark: #9a3f00;
    --color-primary-tint: #fff1e2;
    --color-dark: #231a10;
    --color-light-bg: #faf5ec;
    --season-accent: #f5a623;
}
html[data-theme="fall"] {
    --color-primary: #b4470f;
    --color-primary-dark: #8a3508;
    --color-primary-tint: #fbeadf;
    --color-dark: #271b13;
    --color-light-bg: #f8f1ea;
    --season-accent: #d9822b;
}
html[data-theme="winter"] {
    --color-primary: #1d63a8;
    --color-primary-dark: #154c82;
    --color-primary-tint: #e6f1fa;
    --color-dark: #14212d;
    --color-light-bg: #eef4f9;
    --season-accent: #8ec9f0;
}
html[data-theme="spring"] {
    --color-primary: #1f8049;
    --color-primary-dark: #17623a;
    --color-primary-tint: #e5f5ec;
    --color-dark: #15241b;
    --color-light-bg: #f1f8f3;
    --season-accent: #f2a1c0;
}
html[data-theme="halloween"] {
    --color-primary: #c2480a;
    --color-primary-dark: #8f3507;
    --color-primary-tint: #fff0e5;
    --color-dark: #1a0f26;
    --color-light-bg: #f4eef9;
    --season-accent: #ff8c1a;
}
html[data-theme="thanksgiving"] {
    --color-primary: #9b2c2c;
    --color-primary-dark: #742020;
    --color-primary-tint: #f9ebe6;
    --color-dark: #2a1a14;
    --color-light-bg: #f8f3ec;
    --season-accent: #d9a441;
}

/* a thin strip in the season's accent colour on top of the page header */
html[data-theme] .site-header {
    border-top: 4px solid var(--season-accent, var(--color-primary));
}

/* things the pages colour by hand instead of through the variables */
html[data-theme] .scroll-top-btn {
    background: var(--color-primary) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.28) !important;
}
html[data-theme] #loginButton[style] {
    color: #ffffff !important;
    border-color: var(--season-accent, var(--color-primary)) !important;
}
html[data-theme] #loginButton[style]:hover {
    background-color: var(--season-accent, var(--color-primary)) !important;
    color: #101114 !important;
}

/* ---------- the greeting bar ---------- */
.season-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.5rem 2.75rem 0.5rem 1rem;
    position: relative;
    background: var(--color-primary-dark);
    color: #ffffff;
    font-size: 0.92rem;
    line-height: 1.4;
    text-align: center;
}
.season-bar-icon { font-size: 1.15rem; line-height: 1; flex: none; }
.season-bar-text { max-width: 70ch; overflow-wrap: anywhere; }
.season-bar-close {
    position: absolute;
    right: 0.4rem;
    top: 50%;
    transform: translateY(-50%);
    width: 2.25rem;
    height: 2.25rem;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: inherit;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0.85;
}
.season-bar-close:hover { opacity: 1; background: rgba(255, 255, 255, 0.16); }
.season-bar-close:focus-visible { outline: 2px solid #ffffff; outline-offset: 2px; }
html[data-theme="halloween"] .season-bar { background: #1a0f26; color: #ffb066; }
html[data-theme="thanksgiving"] .season-bar { background: #2a1a14; color: #f3d9a4; }
html[data-theme="winter"] .season-bar { background: #0f3a63; }

@media (max-width: 640px) {
    .season-bar { font-size: 0.85rem; justify-content: flex-start; text-align: left; }
}

/* the Website page's "hide this block" and the owner's hidden blocks */
[data-cms-hidden] { display: none !important; }
