/* ── SHARED SITE FOOTER ──────────────────────────────────
   Used across landing, search and result pages.
   Edit copyright text in views/partials/footer.ejs */
.site-footer {
    margin-top: auto;        /* stick to bottom when body is a flex column */
    background: #2d3748;
    border-top: 1px solid rgba(255,255,255,.06);
    text-align: center;
    padding: 26px 24px;
    font-size: 13px;
    font-weight: 600;
    color: #718096;
}
.site-footer .brand { color: #fc8181; }

/* ── THEME TOGGLE BUTTON ─────────────────────────────────
   Sits inside the top bar (nav) on each page. */
.top-nav-right { display: flex; align-items: center; gap: 12px; }
.theme-toggle-btn {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #475569;
    transition: background .15s, color .15s, border-color .15s;
}
.theme-toggle-btn:hover { background: #e2e8f0; color: #1e293b; }
[data-theme="dark"] .theme-toggle-btn { background: #0f172a; border-color: #334155; color: #cbd5e1; }
[data-theme="dark"] .theme-toggle-btn:hover { background: #1e293b; color: #f1f5f9; }

/* Landing page has no nav — float the toggle over the (always dark) hero */
.landing-toggle { position: fixed; top: 22px; right: 22px; z-index: 200; }
.landing-toggle .theme-toggle-btn {
    background: rgba(15,23,42,.06);
    border-color: rgba(15,23,42,.14);
    color: #334155;
    backdrop-filter: blur(8px);
}
.landing-toggle .theme-toggle-btn:hover { background: rgba(15,23,42,.12); color: #0f172a; }
[data-theme="dark"] .landing-toggle .theme-toggle-btn { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.16); color: #fff; }
[data-theme="dark"] .landing-toggle .theme-toggle-btn:hover { background: rgba(255,255,255,.16); color: #fff; }

/* ── DARK MODE: FOOTER ───────────────────────────────── */
[data-theme="dark"] .site-footer { background: #0f172a; border-color: rgba(255,255,255,.04); }

/* ── SOLID TOAST (matches panel style) ───────────────── */
.solid-toast-container { position: fixed; top: 16px; left: 0; right: 0; display: flex; flex-direction: column; align-items: center; pointer-events: none; z-index: 99999; gap: 8px; }
.solid-toast { background: #fff; color: #363636; padding: 12px 16px; border-radius: 8px; box-shadow: 0 3px 10px rgba(0,0,0,.1), 0 3px 3px rgba(0,0,0,.05); display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 600; animation: solidToastIn .35s cubic-bezier(.21,1.02,.73,1) forwards; will-change: transform; pointer-events: auto; min-width: 200px; max-width: 340px; }
.solid-toast.exiting { animation: solidToastOut .4s forwards cubic-bezier(.06,.71,.55,1); }
.solid-toast-icon { width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; border-radius: 50%; color: #fff; font-size: 10px; flex-shrink: 0; }
.solid-toast-icon.success { background: #61d345; }
.solid-toast-icon.error   { background: #ff4b4b; }
.solid-toast-icon.warning { background: #f59e0b; }
@keyframes solidToastIn  { 0% { transform: translateY(-40px) scale(.9); opacity: 0; } 100% { transform: translateY(0) scale(1); opacity: 1; } }
@keyframes solidToastOut { 0% { transform: scale(1); opacity: 1; } 100% { transform: scale(.9); opacity: 0; } }
[data-theme="dark"] .solid-toast { background: #1e293b; color: #f1f5f9; box-shadow: 0 3px 10px rgba(0,0,0,.4); }
