/* SunucuRadar - notifications.css */

.notifications-list {
    display: grid;
    gap: 12px;
    margin-top: 22px;
}

.notification-card {
    border-radius: 16px;
    padding: 16px;
    border: 1px solid rgba(148,163,184,.16);
    background: linear-gradient(135deg, rgba(15,23,42,.70), rgba(2,6,23,.42));
}

.notification-card.unread {
    border-color: rgba(34,197,94,.48);
    background:
        radial-gradient(circle at 8% 0%, rgba(34,197,94,.16), transparent 30%),
        linear-gradient(135deg, rgba(15,23,42,.82), rgba(2,6,23,.48));
    box-shadow: 0 0 0 1px rgba(34,197,94,.10) inset, 0 18px 45px rgba(34,197,94,.07);
}

.notification-card.read {
    opacity: .68;
}

.notification-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 8px;
}

.notification-title {
    color: #f8fafc;
    font-weight: 1000;
    font-size: 15px;
}

.notification-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 1000;
    white-space: nowrap;
}

.notification-badge.unread {
    color: #86efac;
    background: rgba(34,197,94,.14);
    border: 1px solid rgba(34,197,94,.36);
}

.notification-badge.read {
    color: #94a3b8;
    background: rgba(148,163,184,.10);
    border: 1px solid rgba(148,163,184,.18);
}

.notification-body {
    color: #cbd5e1;
    line-height: 1.55;
    font-size: 14px;
}

.notification-meta {
    color: #94a3b8;
    font-size: 12px;
    font-weight: 800;
    margin-top: 10px;
}

.notification-actions {
    margin-top: 12px;
}

/* Account top button notification pill */
.account-trigger {
    position: relative;
}

.account-trigger .account-notification-pill {
    display: none;
    margin-left: 7px;
    min-width: 19px;
    height: 19px;
    padding: 0 6px;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 11px;
    font-weight: 1000;
    line-height: 19px;
    text-align: center;
    box-shadow: 0 0 14px rgba(239,68,68,.75);
    vertical-align: middle;
}

.account-trigger.has-unread .account-notification-pill {
    display: inline-block;
}

.account-trigger.has-unread {
    background: rgba(239,68,68,.12) !important;
    border: 1px solid rgba(239,68,68,.45) !important;
    color: #fecaca !important;
}

/* Strong visible unread badge on closed account button */
.account-trigger.has-unread {
    position: relative;
    background: rgba(239,68,68,.18) !important;
    border: 1px solid rgba(239,68,68,.55) !important;
    color: #fecaca !important;
    box-shadow: 0 0 0 1px rgba(239,68,68,.12) inset, 0 0 24px rgba(239,68,68,.22) !important;
}

.account-trigger.has-unread::after {
    content: "";
    position: absolute;
    right: -4px;
    top: -4px;
    width: 11px;
    height: 11px;
    border-radius: 999px;
    background: #ef4444;
    border: 2px solid #05080d;
    box-shadow: 0 0 14px rgba(239,68,68,.95);
}

.account-notification-pill {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    margin-left: 7px;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 11px;
    font-weight: 1000;
    line-height: 20px;
    box-shadow: 0 0 16px rgba(239,68,68,.8);
}

/* FORCE: menünün içinde okunmamış bildirim varsa dış hesap butonunu yak */
.account-menu:has(.notification-menu-link.has-unread) .account-trigger {
    position: relative !important;
    background: rgba(239,68,68,.20) !important;
    border: 1px solid rgba(239,68,68,.60) !important;
    color: #fecaca !important;
    box-shadow:
        0 0 0 1px rgba(239,68,68,.18) inset,
        0 0 24px rgba(239,68,68,.28) !important;
}

.account-menu:has(.notification-menu-link.has-unread) .account-trigger::after {
    content: "!";
    position: absolute;
    right: -7px;
    top: -7px;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    border: 2px solid #05080d;
    box-shadow: 0 0 16px rgba(239,68,68,.95);
    font-size: 12px;
    font-weight: 1000;
    line-height: 15px;
    text-align: center;
}

/* FINAL account top unread badge */
.account-trigger.account-alert {
    background: rgba(239,68,68,.20) !important;
    border: 1px solid rgba(239,68,68,.60) !important;
    color: #fecaca !important;
    box-shadow: 0 0 0 1px rgba(239,68,68,.15) inset, 0 0 22px rgba(239,68,68,.28) !important;
}

.account-alert-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 7px;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 11px;
    font-weight: 1000;
    line-height: 20px;
    box-shadow: 0 0 14px rgba(239,68,68,.85);
}

.notification-menu-link.has-unread {
    color: #fecaca !important;
    background: rgba(239,68,68,.14) !important;
    border-left: 3px solid #ef4444 !important;
    font-weight: 1000 !important;
}
