/* ============================================================
   Notification Center
   Matches the site's existing brand palette (--hp-primary/-dark/
   -secondary, defined in public.css) and card conventions (events.css'
   .ev-card), but is a fully separate stylesheet so nothing here can
   affect any other page.
   ============================================================ */

.notif-page-header {
    padding: 22px 16px 8px;
    max-width: 720px;
    margin: 0 auto;
}

.notif-page-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.notif-page-title i {
    font-size: 22px;
    color: var(--hp-secondary, #f5da07);
    background: linear-gradient(135deg, var(--hp-dark, #06305c), var(--hp-primary, #0b539e));
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(6, 48, 92, 0.25);
}

.notif-page-title h1 {
    font-size: 1.4rem;
    font-weight: 800;
    margin: 0;
    color: var(--hp-dark, #06305c);
}
body.dark-mode .notif-page-title h1 { color: #f4f6fb; }

.notif-page-sub {
    margin: 6px 0 0 52px;
    color: #6b7684;
    font-size: 0.92rem;
}
body.dark-mode .notif-page-sub { color: #9aa5a0; }

.notif-list {
    max-width: 720px;
    margin: 0 auto;
    padding: 14px 16px 40px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ---------- Card ---------- */
.notif-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: #fff;
    border-radius: 16px;
    padding: 14px 16px;
    box-shadow: 0 3px 14px rgba(6, 48, 92, 0.08), 0 1px 3px rgba(6, 48, 92, 0.05);
    border: 1px solid rgba(6, 48, 92, 0.05);
    border-left: 4px solid transparent;
    text-decoration: none !important;
    color: inherit !important;
    cursor: pointer;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.4s ease, transform 0.4s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.notif-card.revealed { opacity: 1; transform: translateY(0); }
.notif-card * { text-decoration: none !important; }

body.dark-mode .notif-card {
    background: #16211a;
    border-color: rgba(255, 255, 255, 0.06);
}

@media (hover: hover) {
    .notif-card:hover {
        box-shadow: 0 10px 26px rgba(6, 48, 92, 0.14), 0 2px 6px rgba(6, 48, 92, 0.08);
        transform: translateY(-2px);
    }
}
.notif-card:active { transform: scale(0.988); }

.notif-card.notif-unread {
    border-left-color: var(--hp-secondary, #f5da07);
    background: linear-gradient(90deg, rgba(245, 218, 7, 0.07), transparent 60%), #fff;
}
body.dark-mode .notif-card.notif-unread {
    background: linear-gradient(90deg, rgba(245, 218, 7, 0.08), transparent 60%), #16211a;
}

/* ---------- Icon / thumbnail ---------- */
.notif-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--hp-dark, #06305c), var(--hp-primary, #0b539e));
    color: #fff;
    font-size: 19px;
}

.notif-thumb {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    background: #eef1f5;
}
.notif-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Text ---------- */
.notif-body { flex: 1; min-width: 0; }

.notif-title {
    font-weight: 700;
    font-size: 0.98rem;
    color: var(--hp-dark, #06305c);
    display: flex;
    align-items: center;
    gap: 6px;
}
body.dark-mode .notif-title { color: #f4f6fb; }

.notif-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--hp-secondary, #f5da07);
    box-shadow: 0 0 0 3px rgba(245, 218, 7, 0.25);
    flex-shrink: 0;
}

.notif-text {
    margin-top: 4px;
    font-size: 0.88rem;
    color: #555;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
body.dark-mode .notif-text { color: #c3cbc6; }

.notif-card.notif-expanded .notif-text {
    -webkit-line-clamp: unset;
    overflow: visible;
}

.notif-meta {
    margin-top: 8px;
    font-size: 0.76rem;
    color: #9aa2ad;
    display: flex;
    align-items: center;
    gap: 5px;
}
body.dark-mode .notif-meta { color: #7c8b83; }
.notif-meta-dot { opacity: 0.6; }

.notif-chevron {
    align-self: center;
    color: #c2c9d1;
    font-size: 1rem;
    flex-shrink: 0;
}
body.dark-mode .notif-chevron { color: #4a564e; }

/* ---------- Empty state ---------- */
.notif-empty {
    text-align: center;
    padding: 60px 20px;
    color: #9aa2ad;
}
.notif-empty i {
    font-size: 46px;
    display: block;
    margin-bottom: 12px;
    opacity: 0.5;
}
body.dark-mode .notif-empty { color: #7c8b83; }

/* ---------- Header bell icon + badge (mirrors chat-header-btn) ---------- */
.notif-header-btn {
    position: relative;
}
.notif-header-badge {
    position: absolute;
    top: -4px;
    right: -6px;
    background: #e53935;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    box-shadow: 0 0 0 2px #fff;
}
body.dark-mode .notif-header-badge { box-shadow: 0 0 0 2px #12241a; }
