/* ==========================================================================
   Top bar (single) + Navbar
   ========================================================================== */

:root {
    --hdr-red: #d91f35;
    --hdr-red-dark: #b01828;
    --hdr-red-light: #fef2f4;
    --hdr-dark: #111827;
    --hdr-text: #111827;
    --hdr-muted: #6b7280;
    --hdr-border: #e5e7eb;
    --hdr-bg: #ffffff;
    --hdr-nav-h: 72px;
    --hdr-font: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --hdr-bp: 992px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    width: 100%;
}

/* ── Single top bar (all screen sizes) ── */
.donors-topbar {
    background: var(--hdr-dark);
    color: rgba(255, 255, 255, 0.92);
    font-family: var(--hdr-font);
    font-size: 0.8125rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.donors-topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    min-height: 40px;
    padding: 0.5rem 0;
}

/* Contact: phone always, email on tablet+ */
.donors-topbar__contact {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
    flex-shrink: 1;
}

.donors-topbar__item {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    color: inherit;
    white-space: nowrap;
    min-width: 0;
}

.donors-topbar__item i {
    color: var(--hdr-red);
    flex-shrink: 0;
    font-size: 0.75rem;
}

.donors-topbar__item span {
    overflow: hidden;
    text-overflow: ellipsis;
}

.donors-topbar__item:hover {
    color: var(--hdr-red);
}

.donors-topbar__email {
    display: none;
}

/* Social icons */
.donors-topbar__social {
    display: none;
    align-items: center;
    gap: 0.375rem;
    flex-shrink: 0;
}

.donors-topbar__social a {
    width: 1.875rem;
    height: 1.875rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 0.75rem;
    transition: background 0.2s ease;
}

.donors-topbar__social a:hover {
    background: var(--hdr-red);
    color: #fff;
}

/* Auth / member right side */
.donors-topbar__right {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    flex-shrink: 0;
    margin-left: auto;
}

.donors-topbar__auth {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.donors-topbar__auth a {
    color: inherit;
    font-weight: 600;
    white-space: nowrap;
}

.donors-topbar__auth a:hover {
    color: var(--hdr-red);
}

.donors-topbar__auth-sep {
    color: rgba(255, 255, 255, 0.35);
}

.donors-topbar__member {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.donors-topbar__member .welcome {
    color: var(--hdr-red);
    margin: 0;
    font-size: 0.8125rem;
    display: none;
}

.donors-topbar__member .dropdown-toggle {
    background: none;
    border: none;
    color: #fff;
    font-size: 0.8125rem;
    padding: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-weight: 600;
}

.donors-topbar__member .dropdown-toggle::after {
    display: none;
}

.donors-topbar__member .dropdown-menu {
    border: none;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 0.5rem 0;
    min-width: 220px;
}

.donors-topbar__member .dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
}

.donors-topbar__member .dropdown-item i {
    width: 1rem;
    color: var(--hdr-muted);
}

.donors-topbar__member .dropdown-item:hover {
    background: var(--hdr-red-light);
    color: var(--hdr-red);
}

/* Tablet: show email */
@media (min-width: 576px) {
    .donors-topbar__email {
        display: inline-flex;
    }
}

/* Laptop+: full 3-zone layout */
@media (min-width: 992px) {
    .donors-topbar__inner {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        gap: 1rem;
        min-height: 42px;
    }

    .donors-topbar__contact {
        justify-self: start;
    }

    .donors-topbar__social {
        display: flex;
        justify-self: center;
    }

    .donors-topbar__right {
        justify-self: end;
        margin-left: 0;
    }

    .donors-topbar__member .welcome {
        display: block;
    }

    .donors-topbar__social a {
        width: 2rem;
        height: 2rem;
        font-size: 0.8125rem;
    }
}

/* ── Navbar ── */
.donors-navbar {
    background: var(--hdr-bg);
    font-family: var(--hdr-font);
    padding: 0;
    min-height: var(--hdr-nav-h);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.site-header.is-scrolled .donors-navbar {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.donors-navbar .navbar-brand {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.donors-navbar .navbar-brand img {
    height: 46px;
    width: auto;
}

.donors-navbar .navbar-toggler {
    border: 1px solid var(--hdr-border);
    border-radius: 6px;
    padding: 0.4rem 0.55rem;
}

.donors-navbar .navbar-toggler:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(217, 31, 53, 0.15);
}

.donors-navbar__toggler-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
    color: var(--hdr-text);
    font-size: 1.125rem;
}

/* Remove list bullets, reset nav */
.donors-navbar .navbar-nav {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.donors-navbar .nav-link {
    color: var(--hdr-text);
    font-weight: 500;
    font-size: 0.9375rem;
    padding: 0.625rem 0.875rem;
    transition: color 0.2s ease;
}

.donors-navbar .nav-link:hover {
    color: var(--hdr-red);
}

.donors-navbar .nav-item.active .nav-link {
    color: var(--hdr-red);
    font-weight: 600;
}

/* ── Mobile menu (< 992px) ── */
@media (max-width: 991.98px) {
    .donors-navbar .navbar-collapse {
        border-top: 1px solid var(--hdr-border);
        padding: 0.5rem 0 1rem;
    }

    .donors-navbar .nav-link {
        padding: 0.7rem 0.25rem;
    }

    .donors-navbar .nav-item.active .nav-link {
        background: var(--hdr-red-light);
        border-radius: 6px;
        padding-left: 0.5rem;
    }

    .donors-nav-actions {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        padding-top: 0.75rem;
        margin-top: 0.5rem;
        border-top: 1px solid var(--hdr-border);
    }

    .donors-nav-actions .donors-btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}

/* ── Desktop menu (>= 992px): logo | links | button in one row ── */
@media (min-width: 992px) {
    .donors-navbar .navbar-brand img {
        height: 50px;
    }

    .donors-navbar .navbar-collapse {
        display: flex !important;
        flex-basis: auto;
        align-items: center;
        justify-content: flex-end;
    }

    .donors-navbar .navbar-nav {
        flex-direction: row;
        align-items: center;
        margin-right: 1rem;
    }

    .donors-navbar .nav-link {
        padding: 1.5rem 0.75rem;
        white-space: nowrap;
        position: relative;
    }

    .donors-navbar .nav-item.active .nav-link::after {
        content: '';
        position: absolute;
        left: 0.75rem;
        right: 0.75rem;
        bottom: 1rem;
        height: 2px;
        background: var(--hdr-red);
    }

    .donors-nav-actions {
        display: flex;
        align-items: center;
        flex-shrink: 0;
    }
}

/* Nav buttons */
.donors-nav-actions .donors-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    padding: 0.6rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 9999px;
    border: 2px solid transparent;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.donors-nav-actions .donors-btn--primary {
    background: var(--hdr-red);
    color: #fff;
    border-color: var(--hdr-red);
}

.donors-nav-actions .donors-btn--primary:hover {
    background: var(--hdr-red-dark);
    border-color: var(--hdr-red-dark);
    color: #fff;
}

.donors-nav-actions .donors-btn--outline {
    background: transparent;
    color: var(--hdr-text);
    border-color: var(--hdr-border);
}

.donors-nav-actions .donors-btn--outline:hover {
    border-color: var(--hdr-red);
    color: var(--hdr-red);
}

.donors-notifications-bell {
    position: relative;
    display: inline-flex;
    margin-right: 0.75rem;
}

.donors-notifications-bell__toggle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--hdr-border);
    background: #fff;
    color: var(--hdr-text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.donors-notifications-bell__badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--hdr-red);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
}

.donors-notifications-menu {
    width: min(360px, calc(100vw - 2rem));
    padding: 0;
    border: 0;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.15);
}

.donors-notifications-menu__header,
.donors-notifications-menu__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: #f8fafc;
}

.donors-notifications-menu__items {
    max-height: 320px;
    overflow-y: auto;
}

.donors-notifications-menu__item {
    display: block;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #eef2f7;
    color: inherit;
    text-decoration: none;
}

.donors-notifications-menu__item.is-unread {
    background: #fff5f5;
}

.donors-notifications-menu__item strong {
    display: block;
    font-size: 0.92rem;
    margin-bottom: 0.2rem;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.donors-notifications-menu__item span {
    display: block;
    font-size: 0.82rem;
    color: #64748b;
    line-height: 1.4;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.donors-notifications-list {
    display: grid;
    gap: 1rem;
}

.donors-notification-card {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.1rem;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
}

.donors-notification-card.is-unread {
    border-color: #fecaca;
    background: #fff7f7;
}

.donors-notification-card h3 {
    font-size: 1rem;
    margin: 0 0 0.35rem;
}

.donors-notification-card p {
    margin: 0 0 0.35rem;
    color: #475569;
}
