/* ==========================================================================
   REEBUX — notifications.css | 2026 Fintech — Bright & Lively
   ========================================================================== */

@keyframes fadeInUp { from { opacity:0; transform:translateY(14px); } to { opacity:1; transform:translateY(0); } }
@keyframes rowIn    { from { opacity:0; transform:translateX(-8px); } to { opacity:1; transform:translateX(0); } }
@keyframes pulseDot { 0%,100% { opacity:1; } 50% { opacity:0.25; } }

/* ── Page Background boost ── */
.dashboard-content {
    background: transparent;
}

/* ── Header ── */
.notifications-header {
    display: flex; flex-wrap: wrap; gap: var(--sp-md);
    justify-content: space-between; align-items: center;
    margin-bottom: var(--sp-xl);
    padding-bottom: var(--sp-lg);
    border-bottom: 2px solid #1E3352;
    animation: fadeInUp 0.3s ease-out;
}
.notifications-header h2 {
    margin: 0;
    background: linear-gradient(90deg, #FFFFFF 60%, #22D3EE);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.5rem; font-weight: 900; letter-spacing: -0.02em;
}
.notifications-actions { display: flex; align-items: center; gap: var(--sp-sm); flex-wrap: nowrap; }
button#mark-all-read-btn {
    background: rgba(34,211,238,0.08);
    border: 1px solid rgba(34,211,238,0.2);
    color: #22D3EE;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.5rem 0.85rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
    letter-spacing: 0.03em;
    height: 38px;
    flex: 1;
    min-width: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    white-space: nowrap;
}
button#mark-all-read-btn:hover {
    background: rgba(34,211,238,0.15);
    border-color: rgba(34,211,238,0.4);
    transform: translateY(-1px);
}
button#mark-all-read-btn:active {
    transform: translateY(0);
}

/* ── List container ── */
.notifications-list {
    display: flex; flex-direction: column;
    border: 1px solid #1E3352;
    border-radius: 16px; overflow: hidden;
    background: #060E1C;
    animation: fadeInUp 0.28s ease-out;
    box-shadow: 0 4px 32px rgba(0,0,0,0.5), 0 0 0 1px rgba(34,211,238,0.04);
}

/* ── Single Row ── */
.notif-row {
    display: flex; align-items: stretch;
    cursor: pointer;
    border-bottom: 1px solid #0D1E33;
    transition: background 0.13s;
    animation: rowIn 0.24s ease-out both;
    position: relative;
    overflow: hidden;
    min-height: 76px;
}
.notif-row:last-child { border-bottom: none; }
.notif-row:hover  { background: rgba(255,255,255,0.035); }
.notif-row.unread { background: rgba(34,211,238,0.07); }
.notif-row.unread:hover { background: rgba(34,211,238,0.11); }
.notif-row:nth-child(1) { animation-delay:.03s; }
.notif-row:nth-child(2) { animation-delay:.06s; }
.notif-row:nth-child(3) { animation-delay:.09s; }
.notif-row:nth-child(4) { animation-delay:.12s; }
.notif-row:nth-child(5) { animation-delay:.15s; }
.notif-row:nth-child(6) { animation-delay:.18s; }
.notif-row:nth-child(7) { animation-delay:.21s; }
.notif-row:nth-child(8) { animation-delay:.24s; }

/* ── Corner falling tag — TOP RIGHT ── */
.notif-row-cat {
    position: absolute; top: 0; right: 0;
    border-radius: 0 0 0 8px;
    font-size: 0.57rem; font-weight: 900;
    letter-spacing: 0.07em; text-transform: uppercase;
    padding: 3px 9px; line-height: 1.6; z-index: 2;
}
.notif-row-cat.cat-cyan   { background: #22D3EE; color: #020F14; }
.notif-row-cat.cat-green  { background: #22C55E; color: #021008; }
.notif-row-cat.cat-red    { background: #F43F5E; color: #fff; }
.notif-row-cat.cat-gold   { background: #EAB308; color: #130C00; }
.notif-row-cat.cat-orange { background: #F97316; color: #fff; }
.notif-row-cat.cat-purple { background: #A855F7; color: #fff; }
.notif-row-cat.cat-neon   { background: #34D399; color: #021408; }

/* Row content — padding-top clears the corner tag */
.notif-row-main {
    flex: 1; min-width: 0;
    padding: 28px 14px 13px 16px;
    display: flex; flex-direction: column; gap: 5px;
}
.notif-row-meta {
    display: flex; align-items: center; gap: 7px;
}
.notif-row-time {
    font-size: 0.7rem; color: #7BA0C0; font-family: var(--font); white-space: nowrap;
}
.notif-unread-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: #22D3EE; flex-shrink: 0;
    box-shadow: 0 0 8px rgba(34,211,238,0.8);
    animation: pulseDot 2s ease-in-out infinite;
    margin-left: auto;
}
.notif-row-title {
    color: #F0F8FF; font-size: 0.92rem; font-weight: 800;
    line-height: 1.3; letter-spacing: -0.005em;
    white-space: normal;
    overflow-wrap: break-word;
    word-wrap: break-word;
}
.notif-row.unread .notif-row-title { color: #FFFFFF; }
.notif-row-preview {
    color: #7BA0C0; font-size: 0.78rem; line-height: 1.4;
    white-space: normal;
    overflow-wrap: break-word;
    word-wrap: break-word;
}
.notif-row.unread .notif-row-preview { color: #8BAECF; }

/* ── Empty State ── */
.empty-state {
    text-align: center;
    padding: calc(var(--sp-xl)*2.5) var(--sp-lg);
    animation: fadeInUp 0.35s ease-out;
}
.empty-state .icon { font-size: 3.5rem; margin-bottom: var(--sp-lg); display: block; }
.empty-state h4 { color: #FFFFFF; margin: 0 0 var(--sp-sm); font-size: 1.1rem; font-weight: 700; }
.empty-state p  { color: #7BA0C0; margin: 0; font-size: 0.875rem; line-height: 1.6; }

/* ── Load More ── */
#load-more-btn {
    width: 100%; margin-top: var(--sp-xl);
    background: linear-gradient(135deg, rgba(29,78,216,0.25), rgba(34,211,238,0.12));
    border: 1px solid rgba(34,211,238,0.25);
    color: #22D3EE; padding: var(--sp-md); font-weight: 700;
    font-size: 0.875rem; transition: all 0.18s;
    text-transform: uppercase; letter-spacing: 0.06em; border-radius: var(--r-md);
}
#load-more-btn:hover {
    background: linear-gradient(135deg, rgba(29,78,216,0.4), rgba(34,211,238,0.2));
    border-color: rgba(34,211,238,0.45);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(34,211,238,0.15);
}
#load-more-btn:active { transform: translateY(0); }

/* ── Mobile ── */
@media (max-width: 600px) {
    .notif-row-main { padding: 28px 12px 12px 14px; }
    .notif-row-title { white-space: normal; }
    .notif-row-preview { white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
