/* /static/css/components/theme_notice.css
   "X has no <category> connections yet" notice, centered on the whole window above
   everything when a category change is refused (theme-filter.js
   showNotice). Cream card with the bmap result card's corners and the
   animated b○p mark. */

.theme-notice {
    position: fixed;
    inset: 0;
    z-index: 10001;              /* topmost: above the header, Leaflet and toasts (10000) */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(253, 246, 227, 0.55);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    animation: theme-notice-in 280ms ease-out both;
}

.theme-notice--out {
    animation: theme-notice-out 280ms ease-in both;
}

.theme-notice__card {
    width: min(360px, 100%);
    background: var(--background-color, #FDF6E3);
    border: 1px solid var(--deep-maroon, #8C2F39);
    border-radius: 6px;          /* same as .rct, the bmap result cards */
    box-shadow: var(--shadow-lg, 0 8px 24px rgba(0, 0, 0, 0.15));
    overflow: hidden;
    animation: theme-notice-pop 320ms cubic-bezier(0.2, 0.9, 0.3, 1.2) both;
}

.theme-notice__body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 18px 22px 20px;
    text-align: center;
}

.theme-notice__mark {
    line-height: 0;
    margin-bottom: 2px;
}

.theme-notice__eyebrow {
    margin: 0;
    font-family: var(--brand-font, 'Plus Jakarta Sans', system-ui, sans-serif);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--burnt-orange, #D95D39);
}

.theme-notice__text {
    margin: 0;
    font-family: var(--body-font, 'Inter', sans-serif);
    font-size: 15px;
    line-height: 1.45;
    color: var(--ink-soft, #4A3B30);
}

.theme-notice__text strong {
    font-family: var(--brand-font, 'Plus Jakarta Sans', system-ui, sans-serif);
    font-weight: 800;
    color: var(--ink, #2A1F18);
}

.theme-notice__btn {
    margin-top: 10px;
    padding: 7px 20px;
    font-family: var(--brand-font, 'Plus Jakarta Sans', system-ui, sans-serif);
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    background: var(--burnt-orange, #D95D39);
    border: none;
    border-radius: 18px;
    cursor: pointer;
    transition: background var(--duration-fast, 0.15s) ease;
}

.theme-notice__btn:hover,
.theme-notice__btn:focus-visible {
    background: var(--primary-color-dark, #BF360C);
}

.theme-notice__btn:focus-visible {
    outline: 2px solid var(--golden-ochre, #E0A02F);
    outline-offset: 2px;
}

@keyframes theme-notice-in  { from { opacity: 0; } to { opacity: 1; } }
@keyframes theme-notice-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes theme-notice-pop {
    from { opacity: 0; transform: translateY(8px) scale(0.96); }
    to   { opacity: 1; transform: none; }
}

@media (max-width: 480px) {
    .theme-notice__body { padding: 14px 16px 16px; }
    .theme-notice__text { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
    .theme-notice,
    .theme-notice--out,
    .theme-notice__card { animation: none; }
}
