/* ============================================
   Nexora EDS v2 — Notifications Page
   ============================================ */

/* Header badge */
.nt-header-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    font-size: var(--text-xs);
    font-weight: 700;
    color: #fff;
    background: var(--gradient-aurora);
    border-radius: var(--radius-full);
    box-shadow: 0 2px 8px var(--accent-glow);
    margin-left: var(--spacing-md);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ══════════════════════════════════════════════
   STATS
   ══════════════════════════════════════════════ */
.nt-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.nt-stat {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.nt-stat::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, currentColor 0%, transparent 70%);
    opacity: 0.04;
    pointer-events: none;
}

.nt-stat:hover {
    border-color: var(--card-border-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.nt-stat-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.nt-stat-icon svg { width: 22px; height: 22px; }

.nt-stat-blue   { background: var(--color-info-soft);    color: var(--color-info); }
.nt-stat-green  { background: var(--color-success-soft); color: var(--color-success); }
.nt-stat-orange { background: var(--color-warning-soft); color: var(--color-warning); }
.nt-stat-red    { background: var(--color-error-soft);   color: var(--color-error); }

.nt-stat-info { flex: 1; min-width: 0; }

.nt-stat-label {
    font-size: 11px;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.nt-stat-value {
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
    margin-top: 2px;
    letter-spacing: -0.02em;
}

.nt-stat-trend {
    font-size: var(--text-xs);
    color: var(--text-tertiary);
    margin-top: 2px;
}

/* ══════════════════════════════════════════════
   FILTERS
   ══════════════════════════════════════════════ */
.nt-filters {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: var(--spacing-lg);
    padding: 4px;
    background: var(--bg-hover);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-primary);
    overflow-x: auto;
    scrollbar-width: none;
}

.nt-filters::-webkit-scrollbar { display: none; }

.nt-filter {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-secondary);
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.nt-filter:hover {
    color: var(--text-primary);
    background: var(--bg-active);
}

.nt-filter.active {
    color: #fff;
    background: var(--gradient-aurora);
    box-shadow: 0 2px 12px var(--accent-glow);
}

.nt-filter-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    font-size: 10px;
    font-weight: 700;
    border-radius: var(--radius-full);
    background: var(--bg-elevated);
    color: var(--text-secondary);
    border: 1px solid var(--border-primary);
}

.nt-filter.active .nt-filter-count {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.25);
}

/* ══════════════════════════════════════════════
   GROUPS
   ══════════════════════════════════════════════ */
.nt-group {
    margin-bottom: var(--spacing-xl);
}

.nt-group-header {
    display: flex;
    align-items: baseline;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
    padding: 0 var(--spacing-sm);
}

.nt-group-title {
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.nt-group-count {
    font-size: var(--text-xs);
    color: var(--text-tertiary);
    font-family: var(--font-mono);
}

/* ══════════════════════════════════════════════
   NOTIFICATION ITEM
   ══════════════════════════════════════════════ */
.nt-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.nt-item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: inherit;
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.nt-item:hover {
    border-color: var(--accent-primary);
    transform: translateX(3px);
    box-shadow: var(--shadow-md);
}

.nt-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: transparent;
    transition: background var(--transition-fast);
}

.nt-item.nt-unread::before {
    background: var(--gradient-aurora);
}

.nt-item.nt-unread {
    background: var(--accent-glow);
}

.nt-item.nt-high::before {
    background: var(--color-error);
}

.nt-item.nt-high.nt-unread {
    background: var(--color-error-soft);
    border-color: var(--color-error);
}

/* Icon */
.nt-item-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.nt-item-icon svg { width: 20px; height: 20px; }

.nt-approval   { background: var(--color-success-soft); color: var(--color-success); }
.nt-comment    { background: var(--color-info-soft);    color: var(--color-info); }
.nt-mention    { background: rgba(124, 58, 237, 0.1);   color: var(--accent-primary); }
.nt-assignment { background: rgba(6, 182, 212, 0.1);    color: var(--accent-tertiary); }
.nt-status     { background: var(--color-warning-soft); color: var(--color-warning); }
.nt-deadline   { background: var(--color-error-soft);   color: var(--color-error); }
.nt-system     { background: var(--bg-hover);           color: var(--text-secondary); }

/* Body */
.nt-item-body {
    flex: 1;
    min-width: 0;
}

.nt-item-head {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.nt-item-type-pill {
    display: inline-block;
    padding: 3px 10px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-radius: var(--radius-full);
    border: 1px solid currentColor;
    background: transparent;
}

.nt-item-type-pill.nt-approval   { color: var(--color-success);  background: var(--color-success-soft); }
.nt-item-type-pill.nt-comment    { color: var(--color-info);     background: var(--color-info-soft); }
.nt-item-type-pill.nt-mention    { color: var(--accent-primary); background: rgba(124, 58, 237, 0.1); }
.nt-item-type-pill.nt-assignment { color: var(--accent-tertiary); background: rgba(6, 182, 212, 0.1); }
.nt-item-type-pill.nt-status     { color: var(--color-warning);  background: var(--color-warning-soft); }
.nt-item-type-pill.nt-deadline   { color: var(--color-error);    background: var(--color-error-soft); }
.nt-item-type-pill.nt-system     { color: var(--text-secondary); background: var(--bg-hover); }

.nt-item-title {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.nt-item-priority {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--color-error);
}

.nt-item-priority svg { width: 12px; height: 12px; }

.nt-item-message {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0 0 var(--spacing-sm) 0;
}

.nt-item-footer {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.nt-item-actor {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: var(--text-xs);
    color: var(--text-tertiary);
    font-weight: 500;
}

.nt-actor-avatar {
    width: 20px;
    height: 20px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: 700;
    flex-shrink: 0;
}

.nt-item-time {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: var(--text-xs);
    color: var(--text-tertiary);
    margin-left: auto;
    font-family: var(--font-mono);
}

.nt-item-time svg {
    width: 12px;
    height: 12px;
    opacity: 0.6;
}

/* Unread dot */
.nt-unread-dot {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    width: 10px;
    height: 10px;
    border-radius: var(--radius-full);
    background: var(--accent-primary);
    box-shadow: 0 0 0 4px var(--accent-glow), 0 0 12px var(--accent-glow-strong);
    animation: nt-pulse 2s ease-in-out infinite;
}

@keyframes nt-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.6; transform: scale(1.2); }
}

/* Empty state */
.nt-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-3xl) var(--spacing-lg);
    text-align: center;
}

.nt-empty svg {
    width: 64px;
    height: 64px;
    color: var(--text-tertiary);
    opacity: 0.4;
    margin-bottom: var(--spacing-md);
}

.nt-empty-text {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.nt-empty-hint {
    font-size: var(--text-sm);
    color: var(--text-tertiary);
}

/* ══════════════════════════════════════════════
   BELL IN TOPBAR (universal)
   ══════════════════════════════════════════════ */
.notification-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-md);
    background: var(--bg-hover);
    border: 1px solid var(--border-primary);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
}

.notification-btn svg {
    width: 18px;
    height: 18px;
}

.notification-btn:hover {
    background: var(--bg-active);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    transform: translateY(-1px);
}

.notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    background: var(--color-error);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-body);
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.4);
}

/* ══════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════ */
@media (max-width: 1280px) {
    .nt-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .nt-stats { grid-template-columns: 1fr; }
    .nt-item { padding: var(--spacing-md); }
    .nt-item-head { gap: 6px; }
    .nt-item-title { font-size: var(--text-sm); }
}
