/* WKAU Celebrations — header bell, dropdown panel, teaser (includes/class-bell.php)
   Colors follow the new header tokens (theme → assets/css/header-new.css). */

.wkau-cb, .wkau-cb-teaser, .wkau-cb-count--burger {
    --wcb-navy: #0A1628; --wcb-blue: #0052A5; --wcb-ink: #0A1628; --wcb-muted: #5a6a80;
    --wcb-line: #e3ebf6; --wcb-soft: #F5F9FF; --wcb-chip: #EEF5FF; --wcb-amber: #E0A526; --wcb-gold: linear-gradient(135deg, #f5c46b 0%, #e0a526 100%);
}
.wkau-cb { position: relative; flex-shrink: 0; font-family: Merriweather, Georgia, "Times New Roman", serif; line-height: 1.4; text-align: left; }
.wkau-cb *, .wkau-cb-teaser * { box-sizing: border-box; }

/* ---------- Bell button ---------- */
.wkau-cb .wkau-cb-btn {
    position: relative; display: inline-flex; align-items: center; justify-content: center;
    margin: 0; padding: 0; min-width: 0; box-shadow: none; text-transform: none; letter-spacing: normal;
    font: inherit; line-height: 1; cursor: pointer; -webkit-appearance: none; appearance: none;
    -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.wkau-cb .wkau-cb-btn svg { display: block; flex-shrink: 0; opacity: 1; }

/* Top bar (desktop): same look as the theme's eye button */
.wkau-cb--util .wkau-cb-btn { width: 30px; height: 24px; border: 1px solid #475569; border-radius: 6px; background: #111f36; color: #fff; }
.wkau-cb--util .wkau-cb-btn svg { width: 15px; height: 15px; }
.wkau-cb--util .wkau-cb-btn:hover, .wkau-cb--util.is-open .wkau-cb-btn { background: #fff; border-color: #fff; color: var(--wcb-navy); }

/* Mobile menu: next to the search field, same height */
#nhDrawer .wkau-cb--drawer { position: static; display: flex; }
.wkau-cb--drawer .wkau-cb-btn { width: 46px; height: auto; align-self: stretch; border: 1px solid var(--wcb-line); border-radius: 12px; background: #fff; color: var(--wcb-ink); }
.wkau-cb--drawer .wkau-cb-btn svg { width: 19px; height: 19px; }
.wkau-cb--drawer .wkau-cb-btn:hover, .wkau-cb--drawer.is-open .wkau-cb-btn { border-color: var(--wcb-blue); color: var(--wcb-blue); background: var(--wcb-chip); }

/* Old header: floating chip */
.wkau-cb--float { position: fixed; top: calc(var(--wp-admin--admin-bar--height, 0px) + 110px); right: 16px; z-index: 9990; }
.wkau-cb--float .wkau-cb-btn { gap: 8px; height: 42px; padding: 0 14px 0 6px; border: 1px solid var(--wcb-line); border-radius: 24px; background: #fff; color: var(--wcb-ink); font-size: 13px; font-weight: 700; box-shadow: 0 10px 26px -10px rgba(10,22,40,.35); }
.wkau-cb--float .wkau-cb-chip-ico { width: 30px; height: 30px; border-radius: 50%; background: var(--wcb-navy); color: var(--wcb-amber); display: grid; place-items: center; }
.wkau-cb--float .wkau-cb-btn svg { width: 16px; height: 16px; }
.wkau-cb--float.is-open .wkau-cb-btn { border-color: #b9cff0; background: var(--wcb-soft); }

/* ---------- Count badge ---------- */
.wkau-cb-count {
    position: absolute; top: -6px; right: -6px; min-width: 19px; height: 19px; padding: 0 5px;
    border-radius: 10px; background: var(--wcb-gold); color: var(--wcb-navy);
    font: 900 11px/19px Merriweather, Georgia, serif; text-align: center; box-shadow: 0 0 0 2px #fff;
    font-variant-numeric: tabular-nums; pointer-events: none;
}
.wkau-cb-count::after { content: ""; position: absolute; inset: 0; border-radius: inherit; animation: wkau-cb-ping 2.2s ease-out infinite; }
html.wkau-cb-seen .wkau-cb-count::after { animation: none; }
@keyframes wkau-cb-ping { 0% { box-shadow: 0 0 0 0 rgba(245,158,11,.55); } 70%, 100% { box-shadow: 0 0 0 9px rgba(245,158,11,0); } }
/* Top bar: a dot inside the button's top-right corner instead of the number (the count stays in the button's aria-label) */
.wkau-cb--util .wkau-cb-count { top: 1px; right: 1px; width: 6px; height: 6px; min-width: 0; padding: 0; border-radius: 50%; font-size: 0; line-height: 0; color: transparent; overflow: hidden; box-shadow: none; }
.wkau-cb--util .wkau-cb-count::after { border-radius: 50%; }
.wkau-cb--float .wkau-cb-count { position: static; box-shadow: none; }
.wkau-cb--float .wkau-cb-count::after { display: none; }
.nh-main .nh-burger { position: relative; }
/* Mobile: the same dot inside the ☰ button and the drawer bell (top-right corner) */
.wkau-cb-count--burger, .wkau-cb--drawer .wkau-cb-count { top: 5px; right: 5px; width: 8px; height: 8px; min-width: 0; padding: 0; border-radius: 50%; font-size: 0; line-height: 0; color: transparent; overflow: hidden; box-shadow: 0 0 0 1.5px #fff; }
.wkau-cb-count--burger::after, .wkau-cb--drawer .wkau-cb-count::after { border-radius: 50%; }
.wkau-cb--drawer .wkau-cb-btn:hover .wkau-cb-count, .wkau-cb--drawer.is-open .wkau-cb-count { box-shadow: 0 0 0 1.5px var(--wcb-chip); }
/* ☰ is smaller (38px) — keep the dot clear of the icon's top line; no ring (the button is translucent on the dark front-page header) */
.wkau-cb-count--burger { top: 4px; right: 4px; width: 7px; height: 7px; box-shadow: none; }

/* Bell swings once when the teaser appears */
.wkau-cb-ring svg { animation: wkau-cb-ring 1s ease-in-out 1; transform-origin: 50% 8%; }
@keyframes wkau-cb-ring { 0%,100% { transform: rotate(0); } 15% { transform: rotate(16deg); } 30% { transform: rotate(-14deg); } 45% { transform: rotate(10deg); } 60% { transform: rotate(-7deg); } 75% { transform: rotate(3deg); } }

/* ---------- Teaser (once a day) ---------- */
.wkau-cb-teaser {
    position: absolute; top: calc(100% + 12px); right: -10px; z-index: 40; width: 270px;
    display: flex; align-items: center; gap: 11px; padding: 12px 14px; border-radius: 12px;
    background: var(--wcb-navy); color: #e5edf8; box-shadow: 0 14px 34px -10px rgba(10,22,40,.5);
    font-family: Merriweather, Georgia, "Times New Roman", serif; line-height: 1.4; text-align: left; cursor: pointer;
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: opacity .25s, transform .25s, visibility 0s .25s;
}
.wkau-cb-teaser.is-shown { opacity: 1; visibility: visible; transform: none; transition: opacity .25s, transform .25s; }
.wkau-cb-teaser::before { content: ""; position: absolute; top: -6px; right: 19px; width: 12px; height: 12px; background: var(--wcb-navy); transform: rotate(45deg); border-radius: 2px; }
.wkau-cb-teaser .wkau-cb-teaser-ico { width: 32px; height: 32px; flex-shrink: 0; border-radius: 9px; background: rgba(224,165,38,.16); color: var(--wcb-amber); display: grid; place-items: center; }
.wkau-cb-teaser .wkau-cb-teaser-ico svg { width: 18px; height: 18px; opacity: 1; }
.wkau-cb-teaser b { flex: 1; font-size: 13px; font-weight: 700; color: #fff; }
.wkau-cb-teaser .wkau-cb-teaser-x { flex-shrink: 0; margin: 0; padding: 0 0 0 4px; border: 0; background: none; box-shadow: none; color: #7f90aa; font: 16px/1 Arial, sans-serif; cursor: pointer; }
.wkau-cb-teaser .wkau-cb-teaser-x:hover { color: #fff; }
/* Mobile: under the sticky header, arrow points at ☰ */
.wkau-cb-teaser--mob { right: 12px; left: auto; top: calc(100% + 8px); max-width: calc(100% - 24px); }
.wkau-cb-teaser--mob::before { right: 16px; }
.wkau-cb--float .wkau-cb-teaser { right: 0; }

/* ---------- Panel ---------- */
.wkau-cp {
    position: absolute; top: calc(100% + 12px); right: -8px; z-index: 50; width: 372px; max-width: calc(100vw - 24px);
    max-height: min(560px, calc(100vh - 140px)); display: flex; flex-direction: column; overflow: hidden;
    background: #fff; color: var(--wcb-ink); border: 1px solid var(--wcb-line); border-radius: 16px;
    box-shadow: 0 28px 60px -20px rgba(10,22,40,.38), 0 4px 14px rgba(10,22,40,.06);
    font-size: 14px; cursor: default;
    opacity: 0; visibility: hidden; transform: translateY(-8px) scale(.98); transform-origin: top right;
    transition: opacity .2s ease, transform .22s cubic-bezier(.2,.8,.2,1), visibility 0s .22s;
}
.wkau-cb.is-open .wkau-cp { opacity: 1; visibility: visible; transform: none; transition: opacity .2s ease, transform .22s cubic-bezier(.2,.8,.2,1); }
.wkau-cb--drawer .wkau-cp { left: 0; right: 0; width: auto; max-width: none; top: calc(100% + 8px); max-height: min(520px, calc(100vh - 200px)); }
.wkau-cb--float .wkau-cp { right: 0; top: calc(100% + 10px); }
#nhDrawer .d-srow { position: relative; }

.wkau-cp-head { position: relative; flex-shrink: 0; padding: 16px 18px 14px; background: linear-gradient(180deg, var(--wcb-soft), #fff); border-bottom: 1px solid var(--wcb-line); overflow: hidden; }
.wkau-cp-head canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.wkau-cp-headrow { position: relative; display: flex; align-items: flex-start; gap: 10px; }
.wkau-cp-title { font-size: 15.5px; font-weight: 900; color: var(--wcb-ink); letter-spacing: -.01em; }
.wkau-cp-date { margin-top: 3px; font-size: 12px; color: var(--wcb-muted); }
.wkau-cp .wkau-cp-close { margin: 0 0 0 auto; padding: 0; width: 30px; height: 30px; flex-shrink: 0; display: grid; place-items: center; border: 0; border-radius: 8px; background: transparent; box-shadow: none; color: var(--wcb-muted); cursor: pointer; }
.wkau-cp .wkau-cp-close:hover { background: var(--wcb-chip); color: var(--wcb-ink); }
.wkau-cp .wkau-cp-close svg { width: 16px; height: 16px; opacity: 1; }

.wkau-cp-body { overflow-y: auto; overscroll-behavior: contain; padding: 14px 14px 16px; display: flex; flex-direction: column; gap: 14px; }
.wkau-cp-sec { display: flex; flex-direction: column; gap: 10px; }
.wkau-cp-sec-t { display: flex; align-items: center; gap: 8px; padding: 0 4px; font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--wcb-muted); }
.wkau-cp-sec-t::after { content: ""; flex: 1; height: 1px; background: var(--wcb-line); }

/* Today card */
.wkau-cp-card { position: relative; overflow: hidden; padding: 14px 14px 13px; border-radius: 14px; background: linear-gradient(135deg, #0A1628 0%, #0d2a55 60%, #0052A5 100%); color: #fff; }
.wkau-cp-card::after { content: ""; position: absolute; right: -30px; top: -30px; width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(circle, rgba(245,158,11,.35), rgba(245,158,11,0) 70%); pointer-events: none; }
.wkau-cp-card-top { position: relative; display: flex; align-items: center; gap: 10px; }
.wkau-cp-ico { width: 34px; height: 34px; flex-shrink: 0; border-radius: 10px; background: rgba(224,165,38,.18); color: var(--wcb-amber); display: grid; place-items: center; }
.wkau-cp .wkau-cp-ico svg { width: 19px; height: 19px; opacity: 1; }
.wkau-cp-card-label { font-size: 13.5px; font-weight: 700; color: #fff; }
.wkau-cp-pill { margin-left: auto; flex-shrink: 0; padding: 3px 9px; border-radius: 20px; background: var(--wcb-gold); color: var(--wcb-navy); font-size: 10.5px; font-weight: 900; letter-spacing: .02em; }
.wkau-cp-people { position: relative; display: flex; flex-direction: column; gap: 7px; margin-top: 10px; }
.wkau-cp-person { display: flex; align-items: center; gap: 10px; }
.wkau-cp-av { width: 30px; height: 30px; flex-shrink: 0; border-radius: 50%; background: #fff; color: var(--wcb-blue); font: 900 11.5px/30px Merriweather, Georgia, serif; text-align: center; }
.wkau-cp-name { font-size: 14px; font-weight: 700; color: #fff; }
.wkau-cp .wkau-cp-greet { position: relative; margin: 10px 0 0; padding: 10px 0 0; border-top: 1px solid rgba(255,255,255,.14); font-size: 12.5px; font-style: italic; line-height: 1.5; color: #d6e1f2; }

/* Coming up */
.wkau-cp-soon { display: flex; align-items: center; gap: 12px; padding: 10px 8px; border-radius: 12px; }
.wkau-cp-soon:hover { background: var(--wcb-soft); }
.wkau-cp-datechip { width: 46px; flex-shrink: 0; overflow: hidden; border: 1px solid var(--wcb-line); border-radius: 10px; background: #fff; text-align: center; }
.wkau-cp-datechip b { display: block; padding: 6px 0 3px; font-size: 17px; font-weight: 900; line-height: 1; color: var(--wcb-ink); font-variant-numeric: tabular-nums; }
.wkau-cp-datechip span { display: block; padding: 2px 0; background: var(--wcb-blue); color: #fff; font-size: 9.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.wkau-cp-soon-t { flex: 1; min-width: 0; }
.wkau-cp-soon-t b { display: block; font-size: 13.5px; font-weight: 700; color: var(--wcb-ink); }
.wkau-cp-soon-t small { font-size: 12px; color: var(--wcb-muted); }
.wkau-cp-tag { flex-shrink: 0; padding: 3px 8px; border-radius: 20px; background: var(--wcb-chip); color: var(--wcb-blue); font-size: 10.5px; font-weight: 700; white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
    .wkau-cb-count::after, .wkau-cb-ring svg { animation: none; }
    .wkau-cp, .wkau-cb-teaser, .wkau-cb.is-open .wkau-cp, .wkau-cb-teaser.is-shown { transition: none; }
}
