/* ============================================================
   Dark Grid Arcade – Notifications
   ============================================================ */

.notification-bell {
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

.notification-bell:hover {
    color: var(--text-primary);
}

.notif-count {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--color-danger);
    color: white;
    font-size: 0.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    line-height: 1;
}

/* Notification Dropdown */
.notification-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 360px;
    max-height: 440px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    z-index: var(--z-dropdown);
    display: none;
}

.notification-dropdown.open {
    display: block;
}

.notification-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) var(--space-lg);
    border-bottom: 1px solid var(--border-color);
}

.notification-header h4 {
    font-size: var(--text-sm);
    font-weight: 700;
}

.notification-header .mark-read {
    background: none;
    border: none;
    color: var(--color-primary);
    font-size: var(--text-xs);
    cursor: pointer;
}

.notification-list {
    overflow-y: auto;
    max-height: 380px;
}

.notification-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    border-bottom: 1px solid var(--border-subtle);
    transition: background var(--transition-fast);
    cursor: pointer;
}

.notification-item:hover {
    background: var(--bg-card-hover);
}

.notification-item.unread {
    background: rgba(0, 217, 255, 0.03);
}

.notification-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.notification-icon.achievement { background: rgba(245, 158, 11, 0.15); }
.notification-icon.level-up { background: rgba(0, 217, 255, 0.15); }
.notification-icon.system { background: rgba(59, 130, 246, 0.15); }

.notification-text {
    flex: 1;
    min-width: 0;
}

.notification-text p {
    font-size: var(--text-sm);
    color: var(--text-primary);
    margin-bottom: 2px;
    line-height: 1.4;
}

.notification-time {
    font-size: var(--text-xs);
    color: var(--text-muted);
}

.notification-empty {
    padding: var(--space-2xl);
    text-align: center;
    color: var(--text-muted);
    font-size: var(--text-sm);
}

@media (max-width: 480px) {
    .notification-dropdown {
        width: calc(100vw - var(--space-xl));
        right: calc(-1 * var(--space-md));
    }
}
